diff --git a/src/types/handler.ts b/src/types/handler.ts index 07fca97..7484f4d 100644 --- a/src/types/handler.ts +++ b/src/types/handler.ts @@ -16,7 +16,7 @@ export type Visibility = 'private' | 'public'; export type possibleOutput = T | (MessagePayload & MessageOptions); export type Nullable = T | null; export type execute = Sern.Module['execute']; - +// Thanks @cursorsdottsx export type ParseType = { [K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never; }[keyof T];