UNPKG
@ant-design/x-sdk
Version:
alpha (2.0.0-alpha.16)
beta (2.0.0-alpha.0)
latest (2.0.0-alpha.16)
2.0.0-alpha.16
2.0.0-alpha.15
2.0.0-alpha.14
2.0.0-alpha.13
2.0.0-alpha.12
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
2.0.0-alpha.0
placeholder for @ant-design/x-sdk
x.ant.design/x-sdks/introduce
ant-design/x
@ant-design/x-sdk
/
es
/
x-chat
/
useSyncState.d.ts
5 lines
(4 loc)
•
202 B
TypeScript
View Raw
1
2
3
4
5
import
React
from
'react'
;
type
Getter
<T> =
() =>
T;
export
default
function
useSyncState<T>(
defaultValue
: T |
Getter
<T>):
readonly
[T,
(
action
:
React
.
SetStateAction
<T>
) =>
void
,
Getter
<T>];
export
{};