BangleApps/typescript/types/utility.d.ts

6 lines
124 B
TypeScript
Raw Normal View History

2024-10-10 19:06:30 +00:00
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];
};