Make more of the codebase conform to strict types (#10857)
This commit is contained in:
+2
-2
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user