UNPKG
antd-v5
Version:
latest (5.14.1)
5.14.1
An enterprise-class UI design language and React components implementation
ant.design
antd-v5
/
lib
/
_util
/
hooks
/
useSyncState.d.ts
4 lines
(3 loc)
•
162 B
TypeScript
View Raw
1
2
3
4
type
UseSyncStateProps
<T> =
readonly
[
() =>
T,
(
newValue
: T
) =>
void
];
export
default
function
useSyncState<T>(
initialValue
: T):
UseSyncStateProps
<T>;
export
{};