Fix types
This commit is contained in:
parent
02ab0a134e
commit
124ff40159
|
@ -49,8 +49,8 @@ async function askAboutTopLevel(name: string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function init(opts: PluginOpts) {
|
async function init(opts: PluginOpts | PluginType) {
|
||||||
const type = opts["init"] || (opts as PluginType)
|
const type = (opts as PluginOpts).init || (opts as PluginType)
|
||||||
if (!type || !PLUGIN_TYPE_ARR.includes(type)) {
|
if (!type || !PLUGIN_TYPE_ARR.includes(type)) {
|
||||||
console.log(
|
console.log(
|
||||||
error(
|
error(
|
||||||
|
|
Loading…
Reference in New Issue