Skip to content

Issue with TS in vue template tag #746

Answered by bakerkretzmar
jenky asked this question in Q&A
Discussion options

You must be logged in to vote

Does adding this under your other global route declaration in you .d.ts fix this?

declare module 'vue' {
    interface ComponentCustomProperties {
        route: typeof routeFn;
    }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jenky
Comment options

Answer selected by jenky
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