We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 024edc7 commit 660f93fCopy full SHA for 660f93f
src/util/errors.ts
@@ -1,9 +1,6 @@
1
import APIError, { Opts } from '../types/APIError';
2
3
-export type Diff<T extends string, U extends string> =
4
- ({ [P in T]: P } & { [P in U]: never } & { [x: string]: never })[T];
5
-
6
-export type Omit<T, K extends keyof T> = Pick<T, Diff<keyof T, K>>;
+export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
7
export type ErrorOpts = Omit<Opts, "title" | "status" | "typeUri" | "code">;
8
9
/*
0 commit comments