File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @idrinth/react-file-based-routes" ,
3
- "version" : " 1.2.13 " ,
3
+ "version" : " 1.2.15 " ,
4
4
"repository" : " https://github.com/idrinth/react-file-based-routes" ,
5
5
"description" : " A simple file based routing library, that does not force itself on you." ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export default class TsxWriter implements Writer {
30
30
'const buildLazyElement = (\n' +
31
31
' OfflineLoader: ComponentType|undefined,\n' +
32
32
' RefreshLoader: ComponentType|undefined,\n' +
33
- ' imp: Promise<{default: ComponentType|ElementType }>,\n' +
33
+ ' imp: Promise<{default: ComponentType<any> }>,\n' +
34
34
') => lazy(async() => {\n' +
35
35
' try {\n' +
36
36
' return await imp;\n' +
@@ -45,7 +45,11 @@ export default class TsxWriter implements Writer {
45
45
' throw e;\n' +
46
46
' }\n' +
47
47
'},);\n\n' +
48
- 'const buildRoute = (LazyElement: ElementType, Loader: ElementType, url: string) => {\n' +
48
+ 'const buildRoute = (' +
49
+ ' LazyElement: ComponentType|ElementType,' +
50
+ ' Loader: ElementType,' +
51
+ ' url: string,' +
52
+ ') => {\n' +
49
53
' return {\n' +
50
54
' path: url,\n' +
51
55
' exact: true,\n' +
You can’t perform that action at this time.
0 commit comments