Skip to content

Commit

Permalink
Update the type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skovy committed Sep 13, 2019
1 parent 6d61d95 commit d5ee3ff
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(): <Props>(
WrappedComponent: React.ComponentType<Props>,
) => {
({
initialI18nStore,
initialLanguage,
...rest
}: {
[x: string]: any;
initialI18nStore: any;
initialLanguage: any;
}): React.ComponentElement<{}, React.Component<{}, any, any>>;
initialI18nStore: i18next.Resource;
initialLanguage: string;
} & Props): React.FunctionComponentElement<Props>;
getInitialProps: (ctx: unknown) => Promise<any>;
};

Expand Down

0 comments on commit d5ee3ff

Please sign in to comment.