Skip to content

Commit 2e93d4b

Browse files
committed
chore: up ts to 5
1 parent f1b839e commit 2e93d4b

File tree

6 files changed

+126
-160
lines changed

6 files changed

+126
-160
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"semver": "^7.5.1",
3737
"typedoc": "^0.24.8",
3838
"typedoc-plugin-markdown": "^3.15.3",
39-
"typescript": "~4.9.5",
39+
"typescript": "~5.1.6",
4040
"yorkie": "^2.0.0"
4141
},
4242
"gitHooks": {

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@vitejs/plugin-vue": "^4.2.3",
1717
"@vue/compiler-sfc": "^3.3.4",
1818
"@vue/tsconfig": "^0.4.0",
19-
"typescript": "~4.9.4",
19+
"typescript": "~5.1.6",
2020
"vite": "^4.3.8",
2121
"vue-router": "workspace:*",
2222
"vue-tsc": "^1.6.5"

packages/router/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@vue/devtools-api": "^6.5.0"
7979
},
8080
"devDependencies": {
81-
"@microsoft/api-extractor": "^7.34.4",
81+
"@microsoft/api-extractor": "^7.36.0",
8282
"@rollup/plugin-alias": "^5.0.0",
8383
"@rollup/plugin-commonjs": "^25.0.0",
8484
"@rollup/plugin-node-resolve": "^15.0.2",
@@ -105,11 +105,11 @@
105105
"nightwatch": "^2.6.21",
106106
"nightwatch-helpers": "^1.2.0",
107107
"rimraf": "^5.0.1",
108-
"rollup": "^3.22.0",
108+
"rollup": "^3.26.1",
109109
"rollup-plugin-analyzer": "^4.0.0",
110-
"rollup-plugin-typescript2": "^0.34.1",
110+
"rollup-plugin-typescript2": "^0.35.0",
111111
"sucrase": "^3.32.0",
112-
"typescript": "~4.9.4",
112+
"typescript": "~5.1.6",
113113
"vite": "^4.3.8",
114114
"vue": "^3.3.4"
115115
}

packages/router/src/matcher/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ function normalizeRecordProps(
410410
// NOTE: we could also allow a function to be applied to every component.
411411
// Would need user feedback for use cases
412412
for (const name in record.components)
413-
propsObject[name] = typeof props === 'boolean' ? props : props[name]
413+
propsObject[name] = typeof props === 'object' ? props[name] : props
414414
}
415415

416416
return propsObject

packages/router/tsconfig.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
11
{
2-
"include": ["src/global.d.ts", "src/**/*.ts", "__tests__/**/*.ts"],
2+
"include": [
3+
"src/global.d.ts",
4+
"src/**/*.ts",
5+
"__tests__/**/*.ts"
6+
],
37
"compilerOptions": {
48
"baseUrl": ".",
59
"rootDir": ".",
610
"outDir": "dist",
711
"sourceMap": false,
812
"noEmit": true,
9-
1013
"target": "esnext",
1114
"module": "esnext",
1215
"moduleResolution": "node",
1316
"allowJs": false,
14-
1517
"noUnusedLocals": true,
1618
"strictNullChecks": true,
1719
"noImplicitAny": true,
1820
"noImplicitThis": true,
1921
"noImplicitReturns": true,
2022
"strict": true,
2123
"skipLibCheck": true,
22-
24+
// "noUncheckedIndexedAccess": true,
2325
"experimentalDecorators": true,
2426
"resolveJsonModule": true,
2527
"esModuleInterop": true,
2628
"removeComments": false,
2729
"jsx": "preserve",
28-
"lib": ["esnext", "dom"],
29-
"types": ["jest", "node", "vite/client"]
30+
"lib": [
31+
"esnext",
32+
"dom"
33+
],
34+
"types": [
35+
"jest",
36+
"node",
37+
"vite/client"
38+
]
3039
}
3140
}

0 commit comments

Comments
 (0)