Skip to content

Commit

Permalink
Add missing type definition for withTranslation options (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwkh authored and rosskevin committed Apr 10, 2019
1 parent 69e4973 commit 001ec04
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 001ec04

Please sign in to comment.