Refactoring
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
||||
import * as plugbox from "../plugbox/types";
|
||||
import { EndpointHook } from "../plugbox/feature/endpoint";
|
||||
import { CronHook } from "../plugbox/feature/node_cron";
|
||||
import { EventHook } from "../plugbox/feature/event";
|
||||
|
||||
export type CommandDef = {
|
||||
// Function name to invoke
|
||||
@@ -20,6 +21,7 @@ export type SilverBulletHooks = {
|
||||
[key: string]: CommandDef;
|
||||
};
|
||||
} & EndpointHook &
|
||||
CronHook;
|
||||
CronHook &
|
||||
EventHook;
|
||||
|
||||
export type Manifest = plugbox.Manifest<SilverBulletHooks>;
|
||||
|
||||
Reference in New Issue
Block a user