UNPKG
wouter-preact
Version:
beta (3.8.0-beta.1)
dev (3.0.0-dev.2af8aab)
latest (3.9.0)
next (3.0.0)
rc (3.0.0-rc.3)
3.9.0
3.8.1
3.8.0
3.8.0-beta.1
3.7.1
3.7.0
3.6.1
3.6.0
3.5.1
3.5.0
3.4.0
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.3
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
3.0.0-rc.3
3.0.0-rc.2
3.0.0-rc.1
3.0.0-dev.57f7f8b
3.0.0-dev.2af8aab
2.12.2
2.12.1
2.12.0
2.11.0
2.11.0-dev.3
2.11.0-dev.2
2.11.0-dev.1
2.10.0-alpha.1
2.9.0
2.8.1
2.8.0-alpha.2
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.3
2.5.2
2.5.1
2.5.0
2.5.0-alpha.1
2.4.0
2.3.1
2.3.0
2.2.1
2.2.0
0.0.0-4135c54
Minimalist-friendly ~1.5KB router for Preact
github.com/molefrog/wouter
molefrog/wouter
wouter-preact
/
types
/
use-hash-location.d.ts
11 lines
(8 loc)
•
259 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
Path
}
from
"./location-hook.js"
;
export
function
navigate<S =
any
>(
to
:
Path
,
options
?: {
state
?: S;
replace
?:
boolean
;
transition
?:
boolean
} ):
void
;
export
function
useHashLocation
(
options
?: { ssrPath?: Path; }
): [
Path
,
typeof
navigate];