From 241bc5ea7ce6e2aa3e1663a7b0c0342066fd0cc8 Mon Sep 17 00:00:00 2001 From: maxwkh Date: Wed, 10 Apr 2019 14:38:05 +0900 Subject: [PATCH] Add missing type definition for withTranslation options --- src/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.d.ts b/src/index.d.ts index 08666dba..6761b64c 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -75,6 +75,9 @@ export interface WithTranslation extends i18next.WithT { } export function withTranslation( ns?: Namespace, + options?: { + withRef?: boolean; + } ):

( component: React.ComponentType

, ) => React.ComponentType>;