aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-08-29 22:05:22 +0200
committerVendicated <vendicated@riseup.net>2022-08-29 22:05:22 +0200
commit483bc13a31ab2ba878ff8d9002b0a8671a640ec8 (patch)
tree9967493cf8d65dc90202bb76d604749c5c4ba5ca /src/utils
parentc39ff8f6481463a1700014ebd204f2b6189759a1 (diff)
downloadVencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.tar.gz
Vencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.tar.bz2
Vencord-483bc13a31ab2ba878ff8d9002b0a8671a640ec8.zip
Finish rewrite
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/types.ts11
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