UNPKG
routeria
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
A router package for react
routeria
/
dist
/
hooks
/
useGuards.d.ts
5 lines
(4 loc)
•
232 B
TypeScript
View Raw
1
2
3
4
5
export
declare
const
setGuardCallback
:
(
callback
: (state: [
string
,
boolean
]) =>
void
) =>
(
state
: [
string
,
boolean
]
) =>
void
;
export
declare
const
useGuards
:
() =>
{
setGuardState
:
(
guard
:
string
,
state
:
boolean
) =>
void
; };