Skip to content

Commit

Permalink
types: for context prop of Trans component
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Mar 17, 2022
1 parent 2f80629 commit 36aa841
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 11.16.1

- types: for context prop of Trans component

### 11.16.0

- fix: transSupportBasicHtmlNodes for keepArray check [1470](https://github.com/i18next/react-i18next/pull/1470)
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface TransProps<E extends Element = HTMLDivElement>
children?: React.ReactNode;
components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
count?: number;
context?: string;
defaults?: string;
i18n?: i18n;
i18nKey?: string;
Expand Down
1 change: 1 addition & 0 deletions ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export type TransProps<
children?: React.ReactNode;
components?: readonly React.ReactNode[] | { readonly [tagName: string]: React.ReactNode };
count?: number;
context?: string;
defaults?: string;
i18n?: i18n;
i18nKey?: K | K[];
Expand Down

0 comments on commit 36aa841

Please sign in to comment.