@ohm-vision/react-storage
Version:
Extension to React to interact with native Window Storage object
9 lines (8 loc) • 358 B
TypeScript
import { StorageProps } from "../config/storage-props";
import { StorageInterface } from "../interfaces/storage-interface";
/**
* Default boolean storage which defaults the `convert` to a boolean initializer and string saver
* @param props
* @returns
*/
export declare function useBooleanStorage(props: StorageProps<Boolean>): StorageInterface<Boolean>;