From e563521416052808bcec57057b921f0c0b6ca594 Mon Sep 17 00:00:00 2001 From: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com> Date: Thu, 6 Oct 2022 01:11:32 +0300 Subject: Add commands API (#38) --- src/utils/types.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils') diff --git a/src/utils/types.ts b/src/utils/types.ts index 1c63613..6d4b78e 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -1,3 +1,5 @@ +import { Command } from "../api/Commands"; + // exists to export default definePlugin({...}) export default function definePlugin(p: PluginDef & Record) { return p; @@ -31,6 +33,7 @@ interface PluginDef { start?(): void; stop?(): void; patches?: Omit[]; + commands?: Command[]; dependencies?: string[], required?: boolean; /** -- cgit