feat(handler) Add context more context methods and nullish type

This commit is contained in:
Jacob Nguyen
2022-04-03 01:37:38 -05:00
parent bc0d1ce69e
commit ea8c15986a
4 changed files with 61 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import type { Module } from '../handler/structures/structxports';
// Anything that can be sent in a `<TextChannel>#send` or `<CommandInteraction>#reply`
export type possibleOutput<T = string> = T | (MessagePayload & MessageOptions);
export type execute = Module['execute'];
export type Nullish<T> = T | undefined | null;
// Thanks @cursorsdottsx
export type ParseType<T> = {
[K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never;