Skip to content

Commit

Permalink
fix children type in props
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskevin committed Dec 31, 2018
1 parent 7385205 commit 5bcf60f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ export interface NamespacesConsumerProps extends ReactI18NextOptions {
i18n?: i18next.i18n;
initialI18nStore?: {};
initialLanguage?: string;
children(
children: (
t: i18next.TranslationFunction,
options: {
i18n: i18next.i18n;
lng: string;
ready: boolean;
}
): React.ReactNode;
) => React.ReactNode;
}

export const NamespacesConsumer: React.ComponentClass<NamespacesConsumerProps>;
Expand Down

0 comments on commit 5bcf60f

Please sign in to comment.