Make more of the codebase conform to strict types (#10857)
This commit is contained in:
parent
7f017a84c2
commit
6a3f59cc76
45 changed files with 127 additions and 121 deletions
|
@ -145,8 +145,8 @@ function generateCustomFontFaceCSS(faces: IFontFaces[]): string {
|
|||
return "";
|
||||
})
|
||||
.join(", ");
|
||||
const props = Object.keys(face).filter((prop: (typeof allowedFontFaceProps)[number]) =>
|
||||
allowedFontFaceProps.includes(prop),
|
||||
const props = Object.keys(face).filter((prop) =>
|
||||
allowedFontFaceProps.includes(prop as (typeof allowedFontFaceProps)[number]),
|
||||
) as Array<(typeof allowedFontFaceProps)[number]>;
|
||||
const body = props
|
||||
.map((prop) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue