feat(observableHandling) : making match function a type predicate

assertion
This commit is contained in:
Jacob Nguyen
2022-04-19 10:16:46 -05:00
parent eeabecb4e2
commit 86c4e45ad2
5 changed files with 12 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ export type EventPlugin<T extends CommandType = 1> = {
modTy : T
} & Override<BasePlugin, {
execute : ( event : Parameters<ModuleDefs[T]['execute']>, controller: Controller ) => Awaitable<Result<void,void>>
} >;
}>;
export type SernPlugin =
CommandPlugin