From e9557ee61ffd28fcca80f29f275e22736c383294 Mon Sep 17 00:00:00 2001 From: Panjie Setiawan Wicaksono Date: Sat, 26 Jan 2019 03:04:41 +0700 Subject: [PATCH] fix: useTranslation hooks typing This update useTranslation hook return type to use `TFunction` --- hooks.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks.d.ts b/hooks.d.ts index abbebf392..22496c01c 100644 --- a/hooks.d.ts +++ b/hooks.d.ts @@ -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>,