Skip to content

Commit

Permalink
fix(cli): fix pluginConfig typings
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jan 15, 2020
1 parent e9c3b9c commit b3501a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/koishi-cli/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function loadEcosystem (type: string, name: string) {
throw new Error(`cannot resolve ${type} ${name}`)
}

export type PluginConfig = (string | [string | Plugin, any])[]
export type PluginConfig = (string | [string | Plugin, any?])[]

export interface AppConfig extends AppOptions {
plugins?: PluginConfig | Record<string, PluginConfig>
Expand Down

0 comments on commit b3501a6

Please sign in to comment.