From d5ee3ff299032172381f2f439c616c5cc5157aa0 Mon Sep 17 00:00:00 2001 From: Spencer Miskoviak Date: Thu, 12 Sep 2019 17:53:14 -0700 Subject: [PATCH] Update the type definition --- src/index.d.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index f548dbba2..7b5ddc08f 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -51,18 +51,17 @@ export function useTranslation( ): UseTranslationResponse; // Need to see usage to improve this -export function withSSR(): ( - WrappedComponent: React.ComponentClass<{}, any>, +export function withSSR(): ( + WrappedComponent: React.ComponentType, ) => { ({ initialI18nStore, initialLanguage, ...rest }: { - [x: string]: any; - initialI18nStore: any; - initialLanguage: any; - }): React.ComponentElement<{}, React.Component<{}, any, any>>; + initialI18nStore: i18next.Resource; + initialLanguage: string; + } & Props): React.FunctionComponentElement; getInitialProps: (ctx: unknown) => Promise; };