nuxt-modules / google-fonts

Google Fonts module for NuxtJS
https://google-fonts.nuxtjs.org
MIT License
497 stars 41 forks source link

Invalid typo for font families #191

Open brokuka opened 3 months ago

brokuka commented 3 months ago

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...'.