Closed klondikemarlen closed 4 months ago
@posva Is vue-router
dropping Typescript support? I'd love to be able to tell my boss, so that I don't have to work with it either.
This is indeed a technical limitation. You will have to cast, ignore, or use functions to generate the types that are convenient to you
Apparently I didn't click send the comment. Fortunately, it was kept saved in local storage so I just sent it again 😄
@posva Is vue-router dropping Typescript support? I'd love to be able to tell my boss, so that I don't have to work with it either.
In the future, refrain from snarky comments like this. Thank you.
Reproduction
Unknown
Steps to reproduce the bug
When using
vue-router
withqs.parse
with Typescript I need to ignore theparseQuery
typing.I'm using
There is an additional irritation in that the types don't mesh in Vuetify HTML either.
e.g.
Expected behavior
I would expect
vue-router
to either support passing in a custom type forparseQuery
or auto-magically propagate the type returned by whatever function you pass toparseQuery
.Actual behavior
vue-router
uses it's ownLocationQueryRaw
type which does not mesh well with custom query parsers. This problem may also exist in Vuetify'sVBtn#to
, but it seems likely to me thatvue-router
would need to fix their typing first in either case.Additional information
No response