@livekit/components-core
Version:
This package is a wrapper around the [livekit/client-sdk-js](https://github.com/livekit/client-sdk-js) package. It transforms the event based logic into simple to use observable state and component level APIs. This package is the core for all framework sp
16 lines • 516 B
TypeScript
type JsonPrimitive = string | number | boolean | null;
type JsonArray = JsonValue[];
type JsonObject = {
[key: string]: JsonValue;
};
type JsonValue = JsonPrimitive | JsonArray | JsonObject;
/**
* Generate a pair of functions to load and save a value of type T to local storage.
* @internal
*/
export declare function createLocalStorageInterface<T extends JsonValue>(key: string): {
load: () => T | undefined;
save: (value: T) => void;
};
export {};
//# sourceMappingURL=local-storage-helpers.d.ts.map