state-manager-utility
Version:
Global state management library
13 lines (12 loc) • 440 B
TypeScript
export * from './statemanager.utils';
/**
* Initialize package with required dependencies
* @param {object} StorageUtils(optional) - GetItem, SetItem from storage-utility
* this method can be avoided if state persistence is not required
*/
export declare function InitialiseStateManager({ StorageUtils }: {
StorageUtils: {
SetItem: (key: string, value: any) => void;
GetItem: (key: string) => any;
};
}): void;