redoc/src/types/index.d.ts

6 lines
231 B
TypeScript
Raw Normal View History

2017-10-12 00:01:37 +03:00
export * from './open-api';
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] };