synergies
Classes
Interfaces
References
Provider
Renames and re-exports SynergyProvider
Type aliases
AtomDraft
Ƭ AtomDraft<T
>: Draft
<{ current
: T
; trigger
: () => WritableDraft
<{ current
: T
; trigger
: () => WritableDraft
<{ current: T; trigger: () => WritableDraft<...>; }> }> }>
Type parameters
Name |
---|
T |
Defined in
AtomTuple
Ƭ AtomTuple<T
>: { [I in keyof T]: Atom<T[I]> } & { length
: T
["length"
] }
Type parameters
Name | Type |
---|---|
T | extends [...any[]] |
Defined in
AtomWithValueArray
Ƭ AtomWithValueArray<T
>: { [I in keyof T]: Object } & { length
: T
["length"
] }
Type parameters
Name | Type |
---|---|
T | extends any [] = any [] |
Defined in
DraftTuple
Ƭ DraftTuple<T
>: { [I in keyof T]: AtomDraft<T[I]> } & { length
: T
["length"
] } & any
[]
Type parameters
Name | Type |
---|---|
T | extends [...any[]] |
Defined in
Flatten
Ƭ Flatten<Arr
, Result
>: Arr
extends readonly [] ? Result
: Arr
extends readonly [infer Head, ...infer Tail] ? Head
extends ReadonlyArray
<any
> ? Flatten
<readonly [...Head, ...Tail], Result
> : Flatten
<Tail
, readonly [...Result, Head
]> : never
Type parameters
Name | Type |
---|---|
Arr | extends ReadonlyArray <unknown > |
Result | extends ReadonlyArray <unknown > = [] |
Defined in
Listener
Ƭ Listener: () => void
Type declaration
▸ (): void
Returns
void
Defined in
Middleware
Ƭ Middleware<T
>: (next
: MiddlewareNextFunction
<T
>) => (updatedAtoms
: AtomWithValueArray
<T
>) => void
| Promise
<void
>
Type parameters
Name | Type |
---|---|
T | extends any [] = any [] |
Type declaration
▸ (next
): (updatedAtoms
: AtomWithValueArray
<T
>) => void
| Promise
<void
>
Parameters
Name | Type |
---|---|
next | MiddlewareNextFunction <T > |
Returns
fn
▸ (updatedAtoms
): void
| Promise
<void
>
Parameters
Name | Type |
---|---|
updatedAtoms | AtomWithValueArray <T > |
Returns
void
| Promise
<void
>
Defined in
MiddlewareNextFunction
Ƭ MiddlewareNextFunction<T
>: (newUpdatedAtoms
: AtomWithValueArray
<T
>) => void
Type parameters
Name | Type |
---|---|
T | extends any [] = any [] |
Type declaration
▸ (newUpdatedAtoms
): void
Parameters
Name | Type |
---|---|
newUpdatedAtoms | AtomWithValueArray <T > |
Returns
void
Defined in
SynergyTuple
Ƭ SynergyTuple<T
>: { [I in keyof T]: Synergy<T[I][]> } & { length
: T
["length"
] } & any
[]
Type parameters
Name | Type |
---|---|
T | extends [...any[][]] |
Defined in
Variables
MiddlewareProvider
• Const
MiddlewareProvider: NamedExoticComponent
<MiddlewareProviderProps
>
Defined in
Functions
SynergyProvider
▸ SynergyProvider<T
>(props
): Element
Type parameters
Name | Type |
---|---|
T | extends any [] |
Parameters
Name | Type |
---|---|
props | ProviderProps <T > |
Returns
Element
Defined in
createAtom
▸ createAtom<T
>(defaultValue
, name?
): Atom
<T
>
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
defaultValue | T |
name? | string |
Returns
Atom
<T
>
Defined in
createSynergy
▸ createSynergy<T
>(...atoms
): Synergy
<T
>
Type parameters
Name | Type |
---|---|
T | extends any [] |
Parameters
Name | Type |
---|---|
...atoms | SynergyTuple <T > |
Returns
Synergy
<T
>