Sanity Library Reference Docs
Preparing search index...
sanity
router
RouteTransform
Interface RouteTransform<T>
interface
RouteTransform
<
T
>
{
toPath
:
(
value
:
T
)
=>
string
;
toState
:
(
value
:
string
)
=>
T
;
}
Type Parameters
T
Index
Properties
to
Path
to
State
Properties
to
Path
toPath
:
(
value
:
T
)
=>
string
Converts a state object to a path string.
to
State
toState
:
(
value
:
string
)
=>
T
Converts a path string to a state object.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
to
Path
to
State
Sanity Library Reference Docs
Loading...
Converts a state object to a path string.