chore(types): convert type literals to records (#1615)

This commit is contained in:
Stanislav
2020-07-19 05:56:28 +03:00
committed by GitHub
parent b8db7ab889
commit fa5ddf8d06
5 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ export const decodeHtml: ParserOptions['decodeEntities'] = (
}
// https://html.spec.whatwg.org/multipage/parsing.html#numeric-character-reference-end-state
const CCR_REPLACEMENTS: { [key: number]: number | undefined } = {
const CCR_REPLACEMENTS: Record<number, number | undefined> = {
0x80: 0x20ac,
0x82: 0x201a,
0x83: 0x0192,