refactor: unwrap PluginLoader namespace + self-reexport
This commit is contained in:
parent
f9aa3d77cd
commit
75cbba355e
1 changed files with 139 additions and 139 deletions
|
|
@ -11,7 +11,6 @@ import {
|
||||||
import { ConfigPlugin } from "@/config/plugin"
|
import { ConfigPlugin } from "@/config/plugin"
|
||||||
import { InstallationVersion } from "@/installation/version"
|
import { InstallationVersion } from "@/installation/version"
|
||||||
|
|
||||||
export namespace PluginLoader {
|
|
||||||
export type Plan = {
|
export type Plan = {
|
||||||
spec: string
|
spec: string
|
||||||
options: ConfigPlugin.Options | undefined
|
options: ConfigPlugin.Options | undefined
|
||||||
|
|
@ -171,4 +170,5 @@ export namespace PluginLoader {
|
||||||
for (const item of out) if (item !== undefined) ready.push(item)
|
for (const item of out) if (item !== undefined) ready.push(item)
|
||||||
return ready
|
return ready
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
export * as PluginLoader from "./loader"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue