File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/runtime-core/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import { ObjectEmitsOptions } from './componentEmits'
28
28
export interface App < HostElement = any > {
29
29
version : string
30
30
config : AppConfig
31
- use ( plugin : Plugin , ...options : any [ ] ) : this
31
+ use < Option > ( plugin : Plugin < Option > , ...options : Option [ ] ) : this
32
32
mixin ( mixin : ComponentOptions ) : this
33
33
component ( name : string ) : Component | undefined
34
34
component ( name : string , component : Component ) : this
@@ -137,12 +137,12 @@ export interface AppContext {
137
137
filters ?: Record < string , Function >
138
138
}
139
139
140
- type PluginInstallFunction = ( app : App , ...options : any [ ] ) => any
140
+ type PluginInstallFunction < Option > = ( app : App , ...options : Option [ ] ) => any
141
141
142
- export type Plugin =
143
- | ( PluginInstallFunction & { install ?: PluginInstallFunction } )
142
+ export type Plugin < Option = any > =
143
+ | PluginInstallFunction < Option > & { install ?: PluginInstallFunction < Option > }
144
144
| {
145
- install : PluginInstallFunction
145
+ install : PluginInstallFunction < Option >
146
146
}
147
147
148
148
export function createAppContext ( ) : AppContext {
You can’t perform that action at this time.
0 commit comments