Skip to content

Commit 76b56be

Browse files
committed
chore: up vite,ts,docs
1 parent a05bb0a commit 76b56be

File tree

12 files changed

+452
-131
lines changed

12 files changed

+452
-131
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"p-series": "^3.0.0",
3434
"prettier": "^2.8.0",
3535
"semver": "^7.3.8",
36-
"typescript": "~4.7.4",
36+
"typescript": "~4.9.3",
3737
"yorkie": "^2.0.0"
3838
},
3939
"gitHooks": {

packages/docs/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ ___
124124

125125
### RouterView
126126

127-
`Const` **RouterView**: () => { `$props`: `AllowedComponentProps` & `ComponentCustomProps` & `VNodeProps` & [`RouterViewProps`](interfaces/RouterViewProps.md) ; `$slots`: { `default`: (`arg`: { `Component`: `VNode`<`RendererNode`, `RendererElement`, { `[key: string]`: `any`; }\> ; `route`: [`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md) }) => `VNode`<`RendererNode`, `RendererElement`, { `[key: string]`: `any`; }\>[] } }
127+
`Const` **RouterView**: () => { `$props`: `AllowedComponentProps` & `ComponentCustomProps` & `VNodeProps` & [`RouterViewProps`](interfaces/RouterViewProps.md) ; `$slots`: { `default?`: (`__namedParameters`: { `Component`: `VNode`<`RendererNode`, `RendererElement`, { `[key: string]`: `any`; }\> ; `route`: [`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md) }) => `VNode`<`RendererNode`, `RendererElement`, { `[key: string]`: `any`; }\>[] } }
128128

129129
#### Type declaration
130130

packages/docs/api/interfaces/NavigationFailure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Extended Error that contains extra information regarding a failed navigation.
2020

2121
### cause
2222

23-
`Optional` **cause**: `Error`
23+
`Optional` **cause**: `unknown`
2424

2525
#### Inherited from
2626

packages/docs/api/interfaces/RouteLocationMatched.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ___
6969

7070
### instances
7171

72-
**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`<{}, {}, {}, {}, {}, {}, {}, {}, ``false``, `ComponentOptionsBase`<`any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, {}\>\>\>
72+
**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`<{}, {}, {}, {}, {}, {}, {}, {}, ``false``, `ComponentOptionsBase`<`any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, {}, {}, `string`\>, {}\>\>
7373

7474
Mounted route component instances
7575
Having the instances on the record mean beforeRouteUpdate and

packages/docs/api/interfaces/RouteRecordNormalized.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ___
5353

5454
### instances
5555

56-
**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`<{}, {}, {}, {}, {}, {}, {}, {}, ``false``, `ComponentOptionsBase`<`any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, {}\>\>\>
56+
**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`<{}, {}, {}, {}, {}, {}, {}, {}, ``false``, `ComponentOptionsBase`<`any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, `any`, {}, {}, `string`\>, {}\>\>
5757

5858
Mounted route component instances
5959
Having the instances on the record mean beforeRouteUpdate and

packages/docs/api/interfaces/Router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ ___
401401
Returns the [normalized version](RouteLocation.md) of a
402402
[route location](../index.md#routelocationraw). Also includes an `href` property
403403
that includes any existing `base`. By default, the `currentLocation` used is
404-
`route.currentRoute` and should only be overridden in advanced use cases.
404+
`router.currentRoute` and should only be overridden in advanced use cases.
405405

406406
#### Parameters
407407

packages/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"devDependencies": {
1515
"@algolia/client-search": "^4.14.2",
16-
"typedoc": "^0.23.10",
17-
"typedoc-plugin-markdown": "^3.13.4"
16+
"typedoc": "^0.23.21",
17+
"typedoc-plugin-markdown": "^3.13.6"
1818
}
1919
}

packages/playground/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"vue": "^3.2.45"
1313
},
1414
"devDependencies": {
15-
"@types/node": "^16.18.3",
16-
"@vitejs/plugin-vue": "^2.3.4",
15+
"@types/node": "^18.11.9",
16+
"@vitejs/plugin-vue": "^3.2.0",
1717
"@vue/compiler-sfc": "^3.2.45",
1818
"@vue/tsconfig": "^0.1.3",
19-
"typescript": "~4.7.4",
20-
"vite": "^2.9.15",
19+
"typescript": "~4.9.3",
20+
"vite": "^3.2.4",
2121
"vue-router": "workspace:*",
2222
"vue-tsc": "^1.0.9"
2323
}

packages/router/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@vue/devtools-api": "^6.4.5"
7979
},
8080
"devDependencies": {
81-
"@microsoft/api-extractor": "^7.29.2",
81+
"@microsoft/api-extractor": "^7.33.6",
8282
"@rollup/plugin-alias": "^3.1.4",
8383
"@rollup/plugin-commonjs": "^22.0.2",
8484
"@rollup/plugin-node-resolve": "^13.0.5",
@@ -87,7 +87,7 @@
8787
"@types/jest": "^27.4.1",
8888
"@types/jsdom": "^16.2.15",
8989
"@types/nightwatch": "^2.3.14",
90-
"@vitejs/plugin-vue": "^2.3.4",
90+
"@vitejs/plugin-vue": "^3.2.0",
9191
"@vue/compiler-sfc": "^3.2.45",
9292
"@vue/server-renderer": "^3.2.45",
9393
"@vue/test-utils": "^2.2.4",
@@ -106,9 +106,9 @@
106106
"rollup": "^2.79.1",
107107
"rollup-plugin-analyzer": "^4.0.0",
108108
"rollup-plugin-terser": "^7.0.2",
109-
"rollup-plugin-typescript2": "^0.32.1",
110-
"typescript": "~4.7.4",
111-
"vite": "^2.9.15",
109+
"rollup-plugin-typescript2": "^0.34.1",
110+
"typescript": "~4.9.3",
111+
"vite": "^3.2.4",
112112
"vue": "^3.2.45"
113113
}
114114
}

packages/router/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export function isNavigationFailure(
181181
return (
182182
error instanceof Error &&
183183
NavigationFailureSymbol in error &&
184-
(type == null || !!((error as NavigationFailure).type & type))
184+
(type == null || !!((error as unknown as NavigationFailure).type & type))
185185
)
186186
}
187187

0 commit comments

Comments
 (0)