UNPKG
ht_hooks
Version:
latest (0.1.1)
0.1.1
0.1.0
ht React 业务 Hooks
github.com/MengToong/ht_hooks
MengToong/ht_hooks
ht_hooks
/
lib
/
useResetState
/
index.d.ts
5 lines
(4 loc)
•
226 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
Dispatch
,
SetStateAction
}
from
'react'
;
type
ResetState
=
() =>
void
;
declare
const
useResetState
: <S>
(
initialState
: S | (() => S)
) =>
[S,
Dispatch
<
SetStateAction
<S>>,
ResetState
];
export
default
useResetState;