Skip to content

Commit

Permalink
docs: fix new links
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 8, 2023
1 parent a3a1b33 commit 2a77ce6
Show file tree
Hide file tree
Showing 28 changed files with 93 additions and 84 deletions.
44 changes: 27 additions & 17 deletions packages/docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ API Documentation

### LocationQuery

Ƭ **LocationQuery**: `Record`<`string`, `LocationQueryValue` \| `LocationQueryValue`[]\>
Ƭ **LocationQuery**: `Record`\<`string`, `LocationQueryValue` \| `LocationQueryValue`[]\>

Normalized query object that appears in [RouteLocationNormalized](interfaces/RouteLocationNormalized.md)

___

### LocationQueryRaw

Ƭ **LocationQueryRaw**: `Record`<`string` \| `number`, `LocationQueryValueRaw` \| `LocationQueryValueRaw`[]\>
Ƭ **LocationQueryRaw**: `Record`\<`string` \| `number`, `LocationQueryValueRaw` \| `LocationQueryValueRaw`[]\>

Loose [LocationQuery](index.md#LocationQuery) object that can be passed to functions like
[push](interfaces/Router.md#push) and [replace](interfaces/Router.md#replace) or anywhere when creating a
[Router.push](interfaces/Router.md#push) and [Router.replace](interfaces/Router.md#replace) or anywhere when creating a
[RouteLocationRaw](index.md#RouteLocationRaw)

___

### PathParserOptions

Ƭ **PathParserOptions**: `Pick`<`_PathParserOptions`, ``"end"`` \| ``"sensitive"`` \| ``"strict"``\>
Ƭ **PathParserOptions**: `Pick`\<`_PathParserOptions`, ``"end"`` \| ``"sensitive"`` \| ``"strict"``\>

___

Expand All @@ -82,13 +82,13 @@ ___

### RouteParams

Ƭ **RouteParams**: `Record`<`string`, `RouteParamValue` \| `RouteParamValue`[]\>
Ƭ **RouteParams**: `Record`\<`string`, `RouteParamValue` \| `RouteParamValue`[]\>

___

### RouteParamsRaw

Ƭ **RouteParamsRaw**: `Record`<`string`, `RouteParamValueRaw` \| `Exclude`<`RouteParamValueRaw`, ``null`` \| `undefined`\>[]\>
Ƭ **RouteParamsRaw**: `Record`\<`string`, `RouteParamValueRaw` \| `Exclude`\<`RouteParamValueRaw`, ``null`` \| `undefined`\>[]\>

___

Expand Down Expand Up @@ -116,7 +116,7 @@ ___

### UseLinkOptions

Ƭ **UseLinkOptions**: `VueUseOptions`<`RouterLinkOptions`\>
Ƭ **UseLinkOptions**: `VueUseOptions`\<`RouterLinkOptions`\>

## Variables

Expand All @@ -130,14 +130,24 @@ ___

### RouterView

`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`; }\>[] } }
`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`; }\>[] } }

#### Type declaration

**new RouterView**()
**new RouterView**(): `Object`

Component to display the current route the user is at.

##### Returns

`Object`

| Name | Type |
| :------ | :------ |
| `$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`; }\>[] } |
| `$slots.default?` | (`__namedParameters`: \{ `Component`: `VNode`\<`RendererNode`, `RendererElement`, \{ `[key: string]`: `any`; }\> ; `route`: [`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md) }) => `VNode`\<`RendererNode`, `RendererElement`, \{ `[key: string]`: `any`; }\>[] |

___

### START\_LOCATION
Expand Down Expand Up @@ -308,7 +318,7 @@ ___

### loadRouteLocation

**loadRouteLocation**(`route`): `Promise`<[`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md)\>
**loadRouteLocation**(`route`): `Promise`\<[`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md)\>

Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.

Expand All @@ -320,7 +330,7 @@ Ensures a route is loaded, so it can be passed as o prop to `<RouterView>`.

#### Returns

`Promise`<[`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md)\>
`Promise`\<[`RouteLocationNormalizedLoaded`](interfaces/RouteLocationNormalizedLoaded.md)\>

___

Expand Down Expand Up @@ -372,19 +382,19 @@ ___

| Name | Type |
| :------ | :------ |
| `props` | `VueUseOptions`<`RouterLinkOptions`\> |
| `props` | `VueUseOptions`\<`RouterLinkOptions`\> |

#### Returns

`Object`

| Name | Type |
| :------ | :------ |
| `href` | `ComputedRef`<`string`\> |
| `isActive` | `ComputedRef`<`boolean`\> |
| `isExactActive` | `ComputedRef`<`boolean`\> |
| `navigate` | (`e`: `MouseEvent`) => `Promise`<`void` \| [`NavigationFailure`](interfaces/NavigationFailure.md)\> |
| `route` | `ComputedRef`<[`RouteLocation`](interfaces/RouteLocation.md) & { `href`: `string` }\> |
| `href` | `ComputedRef`\<`string`\> |
| `isActive` | `ComputedRef`\<`boolean`\> |
| `isExactActive` | `ComputedRef`\<`boolean`\> |
| `navigate` | (`e`: `MouseEvent`) => `Promise`\<`void` \| [`NavigationFailure`](interfaces/NavigationFailure.md)\> |
| `route` | `ComputedRef`\<[`RouteLocation`](interfaces/RouteLocation.md) & \{ `href`: `string` }\> |

___

Expand Down
4 changes: 2 additions & 2 deletions packages/docs/api/interfaces/NavigationGuard.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Guards](/guide/advanced/navigation-guards.md).

### NavigationGuard

**NavigationGuard**(`to`, `from`, `next`): `NavigationGuardReturn` \| `Promise`<`NavigationGuardReturn`\>
**NavigationGuard**(`to`, `from`, `next`): `NavigationGuardReturn` \| `Promise`\<`NavigationGuardReturn`\>

#### Parameters

Expand All @@ -25,4 +25,4 @@ Guards](/guide/advanced/navigation-guards.md).

#### Returns

`NavigationGuardReturn` \| `Promise`<`NavigationGuardReturn`\>
`NavigationGuardReturn` \| `Promise`\<`NavigationGuardReturn`\>
6 changes: 3 additions & 3 deletions packages/docs/api/interfaces/NavigationGuardWithThis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ editLink: false

[API Documentation](../index.md) / NavigationGuardWithThis

# Interface: NavigationGuardWithThis<T\>
# Interface: NavigationGuardWithThis\<T\>

Navigation guard. See [Navigation
Guards](/guide/advanced/navigation-guards.md).
Expand All @@ -19,7 +19,7 @@ Guards](/guide/advanced/navigation-guards.md).

### NavigationGuardWithThis

**NavigationGuardWithThis**(`this`, `to`, `from`, `next`): `NavigationGuardReturn` \| `Promise`<`NavigationGuardReturn`\>
**NavigationGuardWithThis**(`this`, `to`, `from`, `next`): `NavigationGuardReturn` \| `Promise`\<`NavigationGuardReturn`\>

#### Parameters

Expand All @@ -32,4 +32,4 @@ Guards](/guide/advanced/navigation-guards.md).

#### Returns

`NavigationGuardReturn` \| `Promise`<`NavigationGuardReturn`\>
`NavigationGuardReturn` \| `Promise`\<`NavigationGuardReturn`\>
8 changes: 4 additions & 4 deletions packages/docs/api/interfaces/RouteLocationMatched.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ___

### beforeEnter

**beforeEnter**: `undefined` \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
**beforeEnter**: `undefined` \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Registered beforeEnter guards

Expand All @@ -55,7 +55,7 @@ ___

### components

**components**: `undefined` \| ``null`` \| `Record`<`string`, [`RouteComponent`](../index.md#RouteComponent)\>
**components**: `undefined` \| ``null`` \| `Record`\<`string`, [`RouteComponent`](../index.md#RouteComponent)\>

Components to display when the URL matches this route. Allow using named views.

Expand All @@ -67,7 +67,7 @@ ___

### instances

**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`\>
**instances**: `Record`\<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`\>

Mounted route component instances
Having the instances on the record mean beforeRouteUpdate and
Expand Down Expand Up @@ -122,7 +122,7 @@ ___

### props

**props**: `Record`<`string`, `_RouteRecordProps`\>
**props**: `Record`\<`string`, `_RouteRecordProps`\>

Allow passing down params as props to the component rendered by
`router-view`. Should be an object with the same keys as `components` or a
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/api/interfaces/RouteLocationNormalized.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ editLink: false
# Interface: RouteLocationNormalized

Similar to [RouteLocation](RouteLocation.md) but its
[matched](RouteLocationNormalized.md#matched) cannot contain redirect records
[RouteLocationNormalized.matched](RouteLocationNormalized.md#matched) cannot contain redirect records

## Hierarchy

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/api/interfaces/RouteMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ declare module 'vue-router' {

## Hierarchy

- `Record`<`string` \| `number` \| `symbol`, `unknown`\>
- `Record`\<`string` \| `number` \| `symbol`, `unknown`\>

**`RouteMeta`**
4 changes: 2 additions & 2 deletions packages/docs/api/interfaces/RouteRecordBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down Expand Up @@ -102,7 +102,7 @@ ___

### props

`Optional` **props**: `_RouteRecordProps` \| `Record`<`string`, `_RouteRecordProps`\>
`Optional` **props**: `_RouteRecordProps` \| `Record`\<`string`, `_RouteRecordProps`\>

Allow passing down params as props to the component rendered by `router-view`.

Expand Down
6 changes: 3 additions & 3 deletions packages/docs/api/interfaces/RouteRecordMultipleViews.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down Expand Up @@ -63,7 +63,7 @@ ___

### components

**components**: `Record`<`string`, `RawRouteComponent`\>
**components**: `Record`\<`string`, `RawRouteComponent`\>

Components to display when the URL matches this route. Allow using named views.

Expand Down Expand Up @@ -130,7 +130,7 @@ ___

### props

`Optional` **props**: `boolean` \| `Record`<`string`, `_RouteRecordProps`\>
`Optional` **props**: `boolean` \| `Record`\<`string`, `_RouteRecordProps`\>

Allow passing down params as props to the component rendered by
`router-view`. Should be an object with the same keys as `components` or a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down Expand Up @@ -63,7 +63,7 @@ ___

### components

`Optional` **components**: ``null`` \| `Record`<`string`, `RawRouteComponent`\>
`Optional` **components**: ``null`` \| `Record`\<`string`, `RawRouteComponent`\>

Components to display when the URL matches this route. Allow using named views.

Expand Down Expand Up @@ -130,7 +130,7 @@ ___

### props

`Optional` **props**: `boolean` \| `Record`<`string`, `_RouteRecordProps`\>
`Optional` **props**: `boolean` \| `Record`\<`string`, `_RouteRecordProps`\>

Allow passing down params as props to the component rendered by
`router-view`. Should be an object with the same keys as `components` or a
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/api/interfaces/RouteRecordNormalized.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ___

### beforeEnter

**beforeEnter**: `undefined` \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
**beforeEnter**: `undefined` \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Registered beforeEnter guards

Expand All @@ -43,15 +43,15 @@ ___

### components

**components**: `undefined` \| ``null`` \| `Record`<`string`, `RawRouteComponent`\>
**components**: `undefined` \| ``null`` \| `Record`\<`string`, `RawRouteComponent`\>

Components to display when the URL matches this route. Allow using named views.

___

### instances

**instances**: `Record`<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`\>
**instances**: `Record`\<`string`, `undefined` \| ``null`` \| `ComponentPublicInstance`\>

Mounted route component instances
Having the instances on the record mean beforeRouteUpdate and
Expand Down Expand Up @@ -90,7 +90,7 @@ ___

### props

**props**: `Record`<`string`, `_RouteRecordProps`\>
**props**: `Record`\<`string`, `_RouteRecordProps`\>

Allow passing down params as props to the component rendered by
`router-view`. Should be an object with the same keys as `components` or a
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/api/interfaces/RouteRecordRedirect.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/api/interfaces/RouteRecordSingleView.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ___

### beforeEnter

`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)<`undefined`\>[]
`Optional` **beforeEnter**: [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\> \| [`NavigationGuardWithThis`](NavigationGuardWithThis.md)\<`undefined`\>[]

Before Enter guard specific to this record. Note `beforeEnter` has no
effect if the record has a `redirect` property.
Expand Down
Loading

0 comments on commit 2a77ce6

Please sign in to comment.