diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/types.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts index 6268d29..282ca0e 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,5 +1,5 @@ // exists to export default definePlugin({...}) -export default function definePlugin(p: Plugin) { +export default function definePlugin(p: PluginDef) { return p; } @@ -17,7 +17,12 @@ export interface Patch { export interface Plugin { name: string; description: string; - author: string[]; + author: string; start?(): void; patches?: Patch[]; -}
\ No newline at end of file +} + +// @ts-ignore lole +interface PluginDef extends Plugin { + patches?: Omit<Patch, "plugin">[]; +}
\ No newline at end of file |
