File tree Expand file tree Collapse file tree 3 files changed +32
-20
lines changed Expand file tree Collapse file tree 3 files changed +32
-20
lines changed Original file line number Diff line number Diff line change 38
38
"ohash" : " ^1.1.3"
39
39
},
40
40
"devDependencies" : {
41
- "@nuxt/module-builder" : " ^0.5.2 " ,
41
+ "@nuxt/module-builder" : " ^0.5.4 " ,
42
42
"@nuxt/schema" : " ^3.8.0" ,
43
43
"@nuxt/ui" : " ^0.4.1" ,
44
44
"@nuxtjs/eslint-config-typescript" : " ^12.1.0" ,
Original file line number Diff line number Diff line change @@ -189,19 +189,26 @@ export default defineNuxtModule<NuxtApolloConfig<any>>({
189
189
190
190
export const defineApolloClient = ( config : ClientConfig ) => config
191
191
192
- declare module '#app' {
193
- interface RuntimeConfig {
194
- // @ts -ignore
195
- apollo : NuxtApolloConfig < any >
192
+ export interface RuntimeModuleHooks {
193
+ 'apollo:auth' : ( params : { client : string , token : Ref < string | null > } ) => void
194
+ 'apollo:error' : ( error : ErrorResponse ) => void
195
+ }
196
196
197
- // @ts -ignore
198
- public :{
199
- apollo : NuxtApolloConfig < any >
200
- }
201
- }
197
+ export interface ModuleRuntimeConfig {
198
+ apollo : NuxtApolloConfig < any >
199
+ }
202
200
203
- interface RuntimeNuxtHooks {
204
- 'apollo:auth' : ( params : { client : string , token : Ref < string | null > } ) => void
205
- 'apollo:error' : ( error : ErrorResponse ) => void
206
- }
201
+ export interface ModulePublicRuntimeConfig {
202
+ apollo : NuxtApolloConfig < any >
203
+ }
204
+
205
+ declare module '#app' {
206
+ interface RuntimeNuxtHooks extends RuntimeModuleHooks { }
207
+ }
208
+
209
+ declare module '@nuxt/schema' {
210
+ interface NuxtConfig { [ 'apollo' ] ?: Partial < ModuleOptions > }
211
+ interface NuxtOptions { [ 'apollo' ] ?: ModuleOptions }
212
+ interface RuntimeConfig extends ModuleRuntimeConfig { }
213
+ interface PublicRuntimeConfig extends ModulePublicRuntimeConfig { }
207
214
}
You can’t perform that action at this time.
0 commit comments