Browse documentation

NativeStorageInterface

Type. Public surface returned by createNativeStore.

Table of contents

Category

Type

Type import

ts
import type { NativeStorageInterface } from "valyrian.js/native-store";

Public signature

ts
interface NativeStorageInterface { state: Record<string, any>; set(key: string, value: any): void; get(key: string): any; delete(key: string): void; load(): void; clear(): void; cleanup(): void; }

Type usage

NativeStorageInterface is the storage surface returned by createNativeStore before definition-specific members are intersected.