Skip to content

ookkoouu/unstorage-map-set-kv

Repository files navigation

unstorage-map-set-kv

Usage

import { createKVStorage } from "../src/kv";

const kv = {
	key: "value",
	useFor: ["default", "value"],
};

const storage = createKVStorage("key", { init: kv, /* driver: */ });

await storage.getItem("useFor"); // => Promise<string[]>

Interface