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1
0.9.0
0.8.1
0.8.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.2
0.6.1
0.6.0
0.5.2
0.5.1
0.5.0
0.4.1
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
0.0.0
👻 Next gen state management that will spook you
github.com/pmndrs/jotai
pmndrs/jotai
jotai
/
core
/
useAtomValue.d.ts
5 lines
(4 loc)
•
220 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
Atom
,
Scope
}
from
'./atom'
;
declare
type
Awaited
<T> = T
extends
Promise
<infer V> ?
Awaited
<V> : T;
export
declare
function
useAtomValue<
Value
>(
atom
:
Atom
<
Value
>,
scope
?:
Scope
):
Awaited
<
Value
>;
export
{};