dgrubelic / vue-authenticate

Simple Vue.js authentication library
1.43k stars 252 forks source link

Provide typescript definitions #239

Open ajmas opened 2 years ago

ajmas commented 2 years ago

It would be good to have some typescript definitions for this package. Right now i have needed to set "noImplicitAny": false in my `tsconfig.json' and also provide this hacky workaround, in my boot file (I am using Quasar on top of Vue):

declare module '@vue/runtime-core' {
  interface ComponentCustomProperties {
    $auth: any;
  }
}
ajmas commented 2 years ago

Looks like there are two pending PRs that address this in some way: