Skip to content

Types: AddAliasOptions ​

ts
type AddAliasOptions = object;

The url an alias matches, in the same shapes createRoute takes. An alias declares its whole url: nothing is taken from the route's own path, query, or hash.

Properties ​

PropertyTypeDescription
hash?string | UrlPartHash part of the alias.
path?string | UrlPartPath part of the alias.
query?string | UrlQueryPartQuery (aka search) part of the alias.