hosanna-ui-docs - v0.9.0
    Preparing search index...

    Interface IDeviceRegistry

    Interface representing a device registry for storing key-value pairs.

    interface IDeviceRegistry {
        delete(sectionName: string, key: string): void;
        deleteAll(): void;
        read<T = unknown>(sectionName: string, key: string): T;
        readAll(): Record<string, JsonData>;
        write(sectionName: string, key: string, value: any): void;
        writeAll(data: Record<string, JsonData>): void;
    }
    Index

    Methods

    • Deletes a key from the registry.

      Parameters

      • sectionName: string

        The section name.

      • key: string

        The key to delete.

      Returns void

    • Reads a value from the registry.

      Type Parameters

      • T = unknown

      Parameters

      • sectionName: string

        The section name.

      • key: string

        The key to read.

      Returns T

      The value associated with the key.

    • Writes a value to the registry.

      Parameters

      • sectionName: string

        The section name.

      • key: string

        The key to write.

      • value: any

        The value to write.

      Returns void