From 483bc13a31ab2ba878ff8d9002b0a8671a640ec8 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 29 Aug 2022 22:05:22 +0200 Subject: Finish rewrite --- src/utils/types.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/utils') 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[]; +} \ No newline at end of file -- cgit