From da0bf634a5d47a3994c5a1316d7ff12a6689a6f8 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Mon, 18 Feb 2019 22:13:23 +0800 Subject: [PATCH] chore: add Omit --- src/global.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/global.d.ts b/src/global.d.ts index 3956f8c..299fbde 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -4,3 +4,8 @@ declare module '*.svg?svgr' { const component: SvgrComponent export default component } + +type Omit = Pick< + T, + ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never })[keyof T] +>