Skip to content

Commit

Permalink
Merge pull request #698 from panjiesw/fix/hooks-typings
Browse files Browse the repository at this point in the history
fix: useTranslation hooks typing
  • Loading branch information
jamuhl authored Jan 26, 2019
2 parents 3ad6bf9 + e9557ee commit a627bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function useSSR(initialI18nStore: any, initialLanguage: any): void;
export function useTranslation(
ns?: Namespace,
options?: UseTranslationOptions,
): [i18next.TranslationFunction, i18next.i18n | {}];
): [i18next.TFunction, i18next.i18n | {}];

export function withSSR(): (
WrappedComponent: React.ComponentClass<{}, any>,
Expand Down

0 comments on commit a627bb5

Please sign in to comment.