mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-30 09:53:02 +00:00
3 lines
256 B
TypeScript
3 lines
256 B
TypeScript
// https://github.com/Microsoft/TypeScript/issues/12215
|
|
export type Diff<T extends string, U extends string> = ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
|
|
export type Omit<T, K extends keyof T> = { [P in Diff<keyof T, K>]: T[P] };
|