Finish rewrite

This commit is contained in:
Vendicated 2022-08-29 22:05:22 +02:00
parent c39ff8f648
commit 483bc13a31
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
15 changed files with 165 additions and 29 deletions

View file

@ -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[];
}
}
// @ts-ignore lole
interface PluginDef extends Plugin {
patches?: Omit<Patch, "plugin">[];
}