utility.d.ts: add

pull/3565/head
Rob Pilling 2024-10-10 20:06:30 +01:00
parent b2e788683a
commit 23a53f0284
1 changed files with 5 additions and 0 deletions

5
typescript/types/utility.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};