refactor: Cleaning up more, moving things for organization

This commit is contained in:
Jacob Nguyen
2022-05-15 19:31:30 -05:00
parent 269ab563ab
commit bcbfd28788
5 changed files with 19 additions and 17 deletions

View File

@@ -22,3 +22,11 @@ export type SlashOptions = Omit<CommandInteractionOptionResolver, 'getMessage' |
//https://dev.to/vborodulin/ts-how-to-override-properties-with-type-intersection-554l
export type Override<T1, T2> = Omit<T1, keyof T2> & T2;
export type UnionToTuple<T> = T extends readonly [infer V, infer S]
? V extends V
? S extends S
? [V, S]
: [V]
: never
: never;