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 @@ -27,7 +27,7 @@ import { ObjectEmitsOptions } from './componentEmits'
27
27
export interface App < HostElement = any > {
28
28
version : string
29
29
config : AppConfig
30
- use ( plugin : Plugin , ...options : any [ ] ) : this
30
+ use < Option > ( plugin : Plugin < Option > , ...options : Option [ ] ) : this
31
31
mixin ( mixin : ComponentOptions ) : this
32
32
component ( name : string ) : Component | undefined
33
33
component ( name : string , component : Component ) : this
@@ -130,12 +130,12 @@ export interface AppContext {
130
130
filters ?: Record < string , Function >
131
131
}
132
132
133
- type PluginInstallFunction = ( app : App , ...options : any [ ] ) => any
133
+ type PluginInstallFunction < Option > = ( app : App , ...options : Option [ ] ) => any
134
134
135
- export type Plugin =
136
- | PluginInstallFunction & { install ?: PluginInstallFunction }
135
+ export type Plugin < Option = any > =
136
+ | PluginInstallFunction < Option > & { install ?: PluginInstallFunction < Option > }
137
137
| {
138
- install : PluginInstallFunction
138
+ install : PluginInstallFunction < Option >
139
139
}
140
140
141
141
export function createAppContext ( ) : AppContext {
You can’t perform that action at this time.
0 commit comments