mirror of
https://github.com/sern-handler/handler
synced 2026-06-28 02:32:15 +00:00
feat(types) added util type Override
This commit is contained in:
@@ -25,3 +25,7 @@ export type DiscordEvent =
|
||||
ParseType< { [K in keyof ClientEvents ] : (...args : ClientEvents[K]) => Awaitable<void> }>;
|
||||
|
||||
export type SlashOptions = Omit<CommandInteractionOptionResolver, 'getMessage' | 'getFocused'>;
|
||||
|
||||
//https://dev.to/vborodulin/ts-how-to-override-properties-with-type-intersection-554l
|
||||
export type Override<T1, T2> = Omit<T1, keyof T2> & T2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user