posva / unplugin-vue-router

Next Generation file based typed routing for Vue Router
https://uvr.esm.is
MIT License
1.62k stars 79 forks source link

Allow typing RouteMeta #403

Open posva opened 4 months ago

Jogai commented 4 months ago

Does this mean /123 will be a real Number? If so, I also hope enums will be supported. So when there is /Sea/123 it should be possible to know its coming from

export enum Type {
    Road = 0,
    Sea = 1,
}
posva commented 4 months ago

That’s another thing: Param matchers. Also planned thought!