UNPKG

fluidstate

Version:

Library for fine-grained reactivity state management

26 lines (25 loc) 1.68 kB
export type NameOptions = undefined | { atomName: string; } | { createAtomName: () => string; } | { parentAtomName: string; childIndex?: string; createAtomName: (parentAtomName: string, childIndex?: string) => string; }; export declare const createAtomName: () => string; export declare const createRemoteAtomName: (atomName: string) => string; export declare const createAtomNameFromOptions: (options: NameOptions) => string; export declare const createArrayAtomName: (parentAtomName: string) => string; export declare const createArrayItemAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createMapValueAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createMapKeyAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createMapItemAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createMapSizeAtomName: (parentAtomName: string) => string; export declare const createSetValueAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createSetTransformedAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createSetAtomName: (parentAtomName: string) => string; export declare const createObjectKeysAtomName: (parentAtomName: string) => string; export declare const createObjectComputedValueAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createObjectValueAtomName: (parentAtomName: string, childIndex?: string) => string; export declare const createPromiseAtomName: (parentAtomName: string) => string;