From e47d6a12fd8c0171311854bb75942d1472864b2f Mon Sep 17 00:00:00 2001 From: Mikkel Date: Mon, 4 Feb 2019 09:53:55 +0100 Subject: [PATCH] Simplify the Omit type --- src/hoc.tsx | 4 ++-- src/types.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hoc.tsx b/src/hoc.tsx index e5b6c5d..c1fa213 100644 --- a/src/hoc.tsx +++ b/src/hoc.tsx @@ -4,8 +4,8 @@ import { Omit } from './types' export interface WithTranslateProps extends I18nContextProps {} -function withTranslate

( - BaseComponent: React.ComponentType

+function withTranslate

( + BaseComponent: React.ComponentType

): React.ComponentType> { return class WithTranslate extends React.Component

{ static displayName = `withTranslate(${BaseComponent.displayName})` diff --git a/src/types.ts b/src/types.ts index ce7b829..35ae48d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -56,4 +56,4 @@ export type TranslatePluralJsxFunc = ( context?: string ) => ReactNode -export type Omit = Pick>; +export type Omit = Pick>