chore: add Omit

This commit is contained in:
EnixCoda 2019-02-18 22:13:23 +08:00
parent 6de067a72f
commit da0bf634a5
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD

5
src/global.d.ts vendored
View file

@ -4,3 +4,8 @@ declare module '*.svg?svgr' {
const component: SvgrComponent
export default component
}
type Omit<T, K extends keyof T> = Pick<
T,
({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never })[keyof T]
>