UNPKG

@worker-tools/kv-storage

Version:

Picks the platform-specific Storage Area (1,2,3) implementation for Deno, Cloudflare Workers and the browser.

8 lines (7 loc) 374 B
import type { StorageArea as IStorageArea, Options, AllowedKey, Key } from 'kv-storage-interface'; export type { Options, AllowedKey, Key }; declare type StorageAreaConstructor = new (name: string, opts?: Options) => IStorageArea; declare type StorageAreaClass = StorageAreaConstructor & { prototype: IStorageArea; }; export declare const StorageArea: StorageAreaClass;