diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-09 01:59:21 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-09 01:59:21 +0200 |
commit | 151f2eef8a72faa57608185e4d09005404b251bf (patch) | |
tree | 654b5e4b615edffefe6e9f19514a52b49f04defd /src/utils | |
parent | e0bbdd89bd33b1ed7361e316f137f3bfde34aff8 (diff) | |
download | Vencord-151f2eef8a72faa57608185e4d09005404b251bf.tar.gz Vencord-151f2eef8a72faa57608185e4d09005404b251bf.tar.bz2 Vencord-151f2eef8a72faa57608185e4d09005404b251bf.zip |
Improve plugin typings
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/types.ts | 2 |
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; } |