UNPKG
ahooks-v2
Version:
latest (2.10.15)
2.10.15
2.10.13
react hooks library
github.com/alibaba/hooks
alibaba/hooks
ahooks-v2
/
es
/
usePersistFn
/
index.d.ts
4 lines
(3 loc)
•
151 B
TypeScript
View Raw
1
2
3
4
export
declare
type
noop =
(
...
args
:
any
[]
) =>
any
;
declare
function
usePersistFn<T
extends
noop>(
fn
: T):
NonNullable
<T>;
export
default
usePersistFn;