Skip to content

Commit 660f93f

Browse files
committedMay 3, 2018
fix(typings): tweak typings to work with ts@next
See microsoft/TypeScript#23592
1 parent 024edc7 commit 660f93f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/util/errors.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import APIError, { Opts } from '../types/APIError';
22

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>>;
3+
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
74
export type ErrorOpts = Omit<Opts, "title" | "status" | "typeUri" | "code">;
85

96
/*

0 commit comments

Comments
 (0)
Please sign in to comment.