Skip to content

Commit

Permalink
Add missing type definition for withTranslation options
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwkh authored Apr 10, 2019
1 parent 69e4973 commit 241bc5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ export interface WithTranslation extends i18next.WithT {
}
export function withTranslation(
ns?: Namespace,
options?: {
withRef?: boolean;
}
): <P extends WithTranslation>(
component: React.ComponentType<P>,
) => React.ComponentType<Omit<P, keyof WithTranslation>>;
Expand Down

0 comments on commit 241bc5e

Please sign in to comment.