UNPKG

@huds0n/shared-state-store-rn

Version:

Share States React Native store creator

14 lines 571 B
import type { SharedState, SharedStateTypes } from '@huds0n/shared-state'; import type { Types } from './types'; export declare class SharedStateStore<S extends SharedStateTypes.State> { private _options; private _sharedState; constructor(sharedState: SharedState<S>, options: Types.Options<S>); get name(): string; get sharedState(): SharedState<S>; save(state?: S): Promise<boolean>; load(): Promise<Partial<S> | undefined>; delete(): Promise<void>; } export type { Types as SharedStateStoreRNTypes }; //# sourceMappingURL=index.d.ts.map