forked from nuxt-community/auth-module
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
38 lines (32 loc) · 765 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import 'vue'
import '@nuxt/types'
import type { ModuleOptions, RecursivePartial, Auth } from './dist/index'
export * from './dist/index'
declare module '@nuxt/types' {
interface Context {
$auth: Auth
}
interface NuxtAppOptions {
$auth: Auth
}
interface Configuration {
auth?: RecursivePartial<ModuleOptions>
}
}
declare module 'vue/types/vue' {
interface Vue {
$auth: Auth
}
}
declare module 'vue/types/options' {
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
interface ComponentOptions<V> {
auth?: true | false | 'guest'
}
}
declare module 'vuex/types/index' {
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
interface Store<S> {
$auth: Auth
}
}