Improve plugin typings
This commit is contained in:
parent
e0bbdd89bd
commit
151f2eef8a
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { Command } from "../api/Commands";
|
import { Command } from "../api/Commands";
|
||||||
|
|
||||||
// exists to export default definePlugin({...})
|
// 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;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue