Skip to content

Commit

Permalink
chore: up ts to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 5, 2023
1 parent f1b839e commit 2e93d4b
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 160 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"semver": "^7.5.1",
"typedoc": "^0.24.8",
"typedoc-plugin-markdown": "^3.15.3",
"typescript": "~4.9.5",
"typescript": "~5.1.6",
"yorkie": "^2.0.0"
},
"gitHooks": {
Expand Down
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@vitejs/plugin-vue": "^4.2.3",
"@vue/compiler-sfc": "^3.3.4",
"@vue/tsconfig": "^0.4.0",
"typescript": "~4.9.4",
"typescript": "~5.1.6",
"vite": "^4.3.8",
"vue-router": "workspace:*",
"vue-tsc": "^1.6.5"
Expand Down
8 changes: 4 additions & 4 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@vue/devtools-api": "^6.5.0"
},
"devDependencies": {
"@microsoft/api-extractor": "^7.34.4",
"@microsoft/api-extractor": "^7.36.0",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand All @@ -105,11 +105,11 @@
"nightwatch": "^2.6.21",
"nightwatch-helpers": "^1.2.0",
"rimraf": "^5.0.1",
"rollup": "^3.22.0",
"rollup": "^3.26.1",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-typescript2": "^0.34.1",
"rollup-plugin-typescript2": "^0.35.0",
"sucrase": "^3.32.0",
"typescript": "~4.9.4",
"typescript": "~5.1.6",
"vite": "^4.3.8",
"vue": "^3.3.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/matcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function normalizeRecordProps(
// NOTE: we could also allow a function to be applied to every component.
// Would need user feedback for use cases
for (const name in record.components)
propsObject[name] = typeof props === 'boolean' ? props : props[name]
propsObject[name] = typeof props === 'object' ? props[name] : props
}

return propsObject
Expand Down
21 changes: 15 additions & 6 deletions packages/router/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,40 @@
{
"include": ["src/global.d.ts", "src/**/*.ts", "__tests__/**/*.ts"],
"include": [
"src/global.d.ts",
"src/**/*.ts",
"__tests__/**/*.ts"
],
"compilerOptions": {
"baseUrl": ".",
"rootDir": ".",
"outDir": "dist",
"sourceMap": false,
"noEmit": true,

"target": "esnext",
"module": "esnext",
"moduleResolution": "node",
"allowJs": false,

"noUnusedLocals": true,
"strictNullChecks": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noImplicitReturns": true,
"strict": true,
"skipLibCheck": true,

// "noUncheckedIndexedAccess": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"jsx": "preserve",
"lib": ["esnext", "dom"],
"types": ["jest", "node", "vite/client"]
"lib": [
"esnext",
"dom"
],
"types": [
"jest",
"node",
"vite/client"
]
}
}
Loading

0 comments on commit 2e93d4b

Please sign in to comment.