Skip to content

v1.2.0

Compare
Choose a tag to compare
@azu azu released this 17 Apr 06:35
· 33 commits to master since this release

for TypeScript User

1.2.0 require TS 4.1+ because it use Key Remapping in Mapped Types.

Features

  • support index signature in SchemaTypes
(async () => {
    type Scheme = {
        [index:string]: string;
    };
    const storage = await kvsEnvStorage<Scheme>({
        name: "test-data",
        version: 1,
    });
    const value = await storage.set("key", "value");
})();