@ronniepettersson/homebridge-dummy
Version:
Create Homebridge accessories to help with automation and control — scheduling, delays, sensors, commands, webhooks, and more
15 lines (14 loc) • 560 B
TypeScript
import { PrimitiveTypes } from 'homebridge';
type Primative = string | number | boolean;
type Storable = Primative | Primative[] | {
[key: string]: PrimitiveTypes;
};
export declare function storageGet_Deprecated(key: string): Promise<Storable | undefined>;
export declare class Storage {
private static readonly bucket;
static init(persistPath: string): Promise<void>;
static has(key: string): boolean;
static get(key: string): Storable | undefined;
static set(key: string, storable: Storable | undefined): Promise<void>;
}
export {};