Type alias Path

Path: string | string[]

A slash-separated path string or an array of path segments. Paths can be relative to the root of the active router (no prefix), relative to the current route (prefixed with . or ..), or relative to root of the root router when multiple levels of routers are active (prefixed with '/').

Example

'foo/bar/baz'
'./foo'
'../../foo'
['foo', 'bar', 'baz']
['.', 'foo', 'bar']
['/', 'foo']