Quasar.lang typing error "Property 'lang' does not exist on type ..."
-
Hi,
I just started to work with Typescript and stumbled over a typing error.
When a try to switch between the quasar language files withQuasar.lang.set(lang.default)
I get an error that the property ‘lang’ does not exist:
I have looked through the typing definition files and found that in index.d.ts at the end of the file (line 8714) the “lang” type is missing for Quasar. So I changed the line
export const Quasar: { install: (app: App, options: Partial<QuasarPluginOptions>) => any }
to
export const Quasar: { install: (app: App, options: Partial<QuasarPluginOptions>) => any, lang: GlobalQuasarLanguage}and now everything works fine.
Just in case someone else encounters the same problem. -
if you think this is a bug please create a github issue. Try to search for the issue first to prevent duplicate issues.