google-fonts icon indicating copy to clipboard operation
google-fonts copied to clipboard

Invalid typo for font families

Open brokuka opened this issue 3 months ago • 0 comments

Based on the documentation, it is not possible to use syntax as:

Inter: [400, 700]

or

Inter: '200..700'

Error message: Type 'number[]' | 'string' is not assignable to type 'true | 400 | { display?: GoogleFontsDisplay | undefined; subsets?: "cyrillic" | "cyrillic-ext" | "greek" | "latin" | "latin-ext" | "vietnamese" | ("cyrillic" | ... 4 more ... | "vietnamese")[] | undefined; wght?: true | ... 1 more ... | undefined; normal?: true | ... 1 more ... | undefined; regular?: true | ... 1 mo...'.

brokuka avatar Apr 09 '24 12:04 brokuka