-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
42 lines (36 loc) · 884 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
39
40
41
42
import Vue from 'vue'
import type { AdminDialogOptions, CWA } from './dist/index'
export * from './dist/index'
declare module 'axios' {
interface AxiosRequestConfig {
cwa?: boolean
}
}
declare module '@nuxt/types' {
interface Context {
$cwa: CWA
}
interface NuxtAppOptions {
$cwa: CWA
}
}
declare module 'vue/types/vue' {
interface Vue {
$cwa: CWA
adminDialog?: AdminDialogOptions
}
}
// On a Vue component - the options that can be declared to customise module behaviour
declare module 'vue/types/options' {
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
interface ComponentOptions<V extends Vue> {
cwa?: boolean
pageIriParam?: string
}
}
declare module 'vuex/types/index' {
// eslint-disable-next-line no-unused-vars,@typescript-eslint/no-unused-vars
interface Store<S> {
$cwa: any
}
}