feat(types) added util type Override

This commit is contained in:
Jacob Nguyen
2022-03-21 17:27:53 -05:00
parent 05fadf0e33
commit 5baff09c03

View File

@@ -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;