Hi,
I just started to work with Typescript and stumbled over a typing error.
When a try to switch between the quasar language files with
Quasar.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.