File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ export const RouterLinkImpl = /*#__PURE__*/ defineComponent({
261
261
/**
262
262
* Component to render a link that triggers a navigation on click.
263
263
*/
264
- export const RouterLink = RouterLinkImpl as unknown as RouterLinkTyped
264
+ export const RouterLink : RouterLinkTyped = RouterLinkImpl as any
265
265
266
266
/**
267
267
* Typed version of the `RouterLink` component. Its generic defaults to the typed router so it can be inferred
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ expectType<JSX.Element>(<RouterLink class="link" to="/foo" />)
25
25
expectType < JSX . Element > ( < RouterLink to = { { path : '/foo' } } /> )
26
26
expectType < JSX . Element > ( < RouterLink to = { { path : '/foo' } } custom /> )
27
27
// @ts -expect-error: non existing name
28
- expectType < JSX . Element > ( < RouterLink to = { { name : 'nope ' } } custom /> )
28
+ expectError ( < RouterLink to = { { name : '' } } /> )
29
29
30
30
// RouterView
31
31
expectType < JSX . Element > ( < RouterView class = "view" /> )
You can’t perform that action at this time.
0 commit comments