File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 44 Trans ,
55 withNamespaces ,
66 WithNamespaces ,
7- } from "../../src/index" ;
7+ } from 'react-i18next' ;
88
99type TKeys = "title" | "text" ;
1010
@@ -46,13 +46,15 @@ type AnotherArticleKeys = "anotherArticle.part1" | "anotherArticle.part2";
4646/**
4747 * Overload makes completion of arguments by without specifying type parameters
4848 */
49- interface IOverloadedWithNamespaces extends WithNamespaces {
49+ interface OverloadedWithNamespaces extends WithNamespaces {
5050 t ( key : ArticleKeys , b ?: object ) : any ;
51+ // NOTION: disable no-unnecessary-generics for generic test
52+ // tslint:disable-next-line:no-unnecessary-generics
5153 t < T extends AnotherArticleKeys > ( key : T , b : { name : string } ) : any ;
5254}
5355
54- class App extends React . Component < IOverloadedWithNamespaces > {
55- public render ( ) {
56+ class App extends React . Component < OverloadedWithNamespaces > {
57+ render ( ) {
5658 const { t, i18n } = this . props ;
5759
5860 const changeLanguage = ( lng : string ) => {
You can’t perform that action at this time.
0 commit comments