aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-09 01:59:21 +0200
committerVendicated <vendicated@riseup.net>2022-10-09 01:59:21 +0200
commit151f2eef8a72faa57608185e4d09005404b251bf (patch)
tree654b5e4b615edffefe6e9f19514a52b49f04defd /src
parente0bbdd89bd33b1ed7361e316f137f3bfde34aff8 (diff)
downloadVencord-151f2eef8a72faa57608185e4d09005404b251bf.tar.gz
Vencord-151f2eef8a72faa57608185e4d09005404b251bf.tar.bz2
Vencord-151f2eef8a72faa57608185e4d09005404b251bf.zip
Improve plugin typings
Diffstat (limited to 'src')
-rw-r--r--src/utils/types.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 6d4b78e..c30f2c5 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -1,7 +1,7 @@
import { Command } from "../api/Commands";
// exists to export default definePlugin({...})
-export default function definePlugin(p: PluginDef & Record<string, any>) {
+export default function definePlugin<P extends PluginDef>(p: P & Record<string, any>) {
return p;
}