Skip to content

How to define types for RouterLink props? #66

Closed Answered by posva
grindpride asked this question in Q&A
Discussion options

You must be logged in to vote

I implemented a type that can be used directly at 731e9dd

import { type RouteLocationRaw } from 'vue-router/auto'

const to = computed<RouteLocationRaw>(...)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@grindpride
Comment options

@posva
Comment options

Answer selected by grindpride
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #65 on September 16, 2022 12:08.