A simple function allows for creating typed route strings. It’s a type-level only check, at runtime it only validates that it is a string.
This is useful for ensuring your links are valid routes in your application at compile time.
Edit this page on GitHub.