Improve plugin typings

main
Vendicated 2 years ago
parent e0bbdd89bd
commit 151f2eef8a
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3

@ -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;
}

Loading…
Cancel
Save