mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 10:27:03 -04:00
Finish rewrite
This commit is contained in:
parent
c39ff8f648
commit
483bc13a31
15 changed files with 165 additions and 29 deletions
|
@ -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">[];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue