UNPKG

@nacelle/react-hooks

Version:

Custom convenience hooks for use when building apps with Nacelle

11 lines (10 loc) 512 B
import { CacheKey } from '../use-checkout.types'; export declare const cacheKeys: { readonly completed: "checkoutComplete"; readonly id: "checkoutId"; readonly url: "checkoutUrl"; }; export declare function getCacheBoolean(key: CacheKey, defaultValue: boolean): boolean; export declare function getCacheString(key: CacheKey, defaultValue?: string): string; export declare function setCacheItem(key: CacheKey, value: string): void; export declare function unsetCacheItem(key: string): void;