Skip to content

Commit

Permalink
Fix error for typescript 4.6 (#1463)
Browse files Browse the repository at this point in the history
* Bump ts version

* Remove generic from constrain
  • Loading branch information
pedrodurek committed Mar 7, 2022
1 parent 10f8512 commit 306e03a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"rollup-plugin-terser": "^5.1.1",
"sinon": "^7.2.3",
"tslint": "^5.20.1",
"typescript": "^4.5.2",
"typescript": "4.6.2",
"yargs": "^13.3.0"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion ts4.1/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export function withTranslation<N extends Namespace = DefaultNamespace>(
withRef?: boolean;
},
): <
C extends React.ComponentType<React.ComponentProps<C> & WithTranslationProps>,
C extends React.ComponentType<React.ComponentProps<any> & WithTranslationProps>,
ResolvedProps = JSX.LibraryManagedAttributes<
C,
Subtract<React.ComponentProps<C>, WithTranslationProps>
Expand Down

0 comments on commit 306e03a

Please sign in to comment.