Skip to content

Commit 37db814

Browse files
committed
chore: upgrade typescript
1 parent 81d93af commit 37db814

File tree

4 files changed

+39
-38
lines changed

4 files changed

+39
-38
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"pkg-types": "^1.0.3",
3636
"prettier": "^2.8.8",
3737
"rimraf": "^3.0.2",
38-
"typescript": "^4.9.5",
38+
"typescript": "^5.1.6",
3939
"vue-eslint-parser": "^9.3.1"
4040
},
4141
"engines": {

packages/vue-i18n-routing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"devDependencies": {
2424
"@microsoft/api-extractor": "^7.31.1",
2525
"api-docs-gen": "^0.4.0",
26-
"typescript": "^4.8.4",
26+
"typescript": "^5.1.6",
2727
"vite": "^3.2.2",
2828
"vite-plugin-dts": "^0.9.6",
2929
"vitest": "^0.25.2",

packages/vue-i18n-routing/src/compatibles/routing.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ function getLocalizableMetaFromDynamicParams(
273273
if (isRef<RouteMeta>(meta)) {
274274
return (meta.value[key] || metaDefault) as Record<Locale, unknown>
275275
} else {
276-
return (meta[key] || metaDefault) as Record<Locale, unknown>
276+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
277+
return ((meta as any)[key] || metaDefault) as Record<Locale, unknown>
277278
}
278279
}
279280

pnpm-lock.yaml

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)