Skip to content

Commit 3dfc7fd

Browse files
committed
publish 1.2.15
1 parent b8ef9b4 commit 3dfc7fd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/react-file-based-routes",
3-
"version": "1.2.13",
3+
"version": "1.2.15",
44
"repository": "https://github.com/idrinth/react-file-based-routes",
55
"description": "A simple file based routing library, that does not force itself on you.",
66
"license": "MIT",

src/tsx-writer.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class TsxWriter implements Writer {
3030
'const buildLazyElement = (\n' +
3131
' OfflineLoader: ComponentType|undefined,\n' +
3232
' RefreshLoader: ComponentType|undefined,\n' +
33-
' imp: Promise<{default: ComponentType|ElementType}>,\n' +
33+
' imp: Promise<{default: ComponentType<any>}>,\n' +
3434
') => lazy(async() => {\n' +
3535
' try {\n' +
3636
' return await imp;\n' +
@@ -45,7 +45,11 @@ export default class TsxWriter implements Writer {
4545
' throw e;\n' +
4646
' }\n' +
4747
'},);\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' +
4953
' return {\n' +
5054
' path: url,\n' +
5155
' exact: true,\n' +

0 commit comments

Comments
 (0)