Fix plugin types
This commit is contained in:
parent
4338849ff4
commit
651e3dd4c3
1 changed files with 2 additions and 2 deletions
4
types/config.d.ts
vendored
4
types/config.d.ts
vendored
|
|
@ -326,8 +326,8 @@ export interface PluginAPI {
|
|||
export type PluginCreator = (api: PluginAPI) => void
|
||||
export type PluginsConfig = (
|
||||
| PluginCreator
|
||||
| { handler: PluginCreator; config?: Config }
|
||||
| { (options: any): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
|
||||
| { handler: PluginCreator; config?: Partial<Config> }
|
||||
| { (options: any): { handler: PluginCreator; config?: Partial<Config> }; __isOptionsFunction: true }
|
||||
)[]
|
||||
|
||||
// Top level config related
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue