We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 633e51c commit afc4374Copy full SHA for afc4374
example/playground/nuxt.config.ts
@@ -6,6 +6,9 @@ export default defineNuxtConfig({
6
api: '',
7
},
8
hooks: {
9
- 'my-module:init'() {},
+ 'my-module:init'(sharedType) {
10
+ // @ts-expect-error invalid assignment
11
+ const b: number = sharedType
12
+ },
13
14
})
example/src/module.ts
@@ -10,7 +10,7 @@ export interface ModuleOptions {
}
export interface ModuleHooks {
- 'my-module:init': () => void
+ 'my-module:init': (sharedType: SharedTypeFromRuntime) => void
15
16
export interface ModuleRuntimeHooks {
0 commit comments