Skip to content

Commit

Permalink
fix(typings): tweak typings to work with ts@next
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanresnick committed May 3, 2018
1 parent 024edc7 commit 660f93f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/util/errors.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import APIError, { Opts } from '../types/APIError';

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

/*
Expand Down

0 comments on commit 660f93f

Please sign in to comment.