UNPKG
xbpr
Version:
latest (0.0.1)
0.0.1
xbp react ui by @arco-design/web-react
xbpr
/
es
/
_util
/
hooks
/
useComputedState.d.ts
5 lines
(4 loc)
•
228 B
TypeScript
View Raw
1
2
3
4
5
import
{
ComponentState
,
PropsWithoutRef
}
from
'react'
;
declare
type
Dependency
<T> =
PropsWithoutRef
<T> |
ComponentState
;
export
default
function
useComputedState<T>(
computed
:
() =>
any
,
deps
:
Dependency
<T>[]):
any
;
export
{};