Skip to content

Instantly share code, notes, and snippets.

@ycmjason
Last active April 4, 2023 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ycmjason/4560520bd4876a2dffefb9ea32613505 to your computer and use it in GitHub Desktop.
Save ycmjason/4560520bd4876a2dffefb9ea32613505 to your computer and use it in GitHub Desktop.
A totally over-engineered way to make a """type-safe""" `AppLink` with vue-router

I was reading this and trying to implement it in Typescript.

There isn't a lot of good advice on the official doc except for using @ts-ignore which I hate using.

So I spent like half an hour to hack this solution. I hope you enjoy.


And you are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment