We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using TypeScript, we should be able to make an array of font faces in a @global @font-face block:
@global
@font-face
'@global': { '@font-face': [ {fontFamily: '...', src: '...'}, {fontFamily: '...', src: '...'} ] },
but it gives an error:
If I supply one font family instead of an array of font families, it works fine:
Link: https://codesandbox.io/embed/createreactappwithtypescript-zg47i
src/pages/index.tsx
styles
I'd like to apply multiple font faces at once, using the standard JSS format (the @font-face can be an array).
The text was updated successfully, but these errors were encountered:
As a workaround, I can cast it:
'@global': { '@font-face': [ {fontFamily: '...', src: '...'}, {fontFamily: '...', src: '...'} ] as unknown as CSSProperties },
Sorry, something went wrong.
related discussion: DefinitelyTyped/DefinitelyTyped#35614
Successfully merging a pull request may close this issue.
Expected Behavior 馃
Using TypeScript, we should be able to make an array of font faces in a
@global
@font-face
block:but it gives an error:
Current Behavior 馃槸
If I supply one font family instead of an array of font families, it works fine:
Steps to Reproduce 馃暪
Link: https://codesandbox.io/embed/createreactappwithtypescript-zg47i
src/pages/index.tsx
in thestyles
.Context 馃敠
I'd like to apply multiple font faces at once, using the standard JSS format (the
@font-face
can be an array).Your Environment 馃寧
The text was updated successfully, but these errors were encountered: