UNPKG

webserial-core

Version:

Webserial Core to easy connections with serial devices

24 lines 824 B
import { Core } from "./Core.ts"; import { Dispatcher } from "./Dispatcher.ts"; interface IDevice { [key: string]: Core; } interface IDevices { [key: string]: IDevice; } export declare class Devices extends Dispatcher { static instance: Devices; static devices: IDevices; constructor(); static $dispatchChange(device?: Core | null): void; static typeError(type: string): void; static registerType(type: string): void; static add(device: Core): number; static get(type: string, id: string): Core; static getAll(type?: string | null): IDevice | IDevices; static getList(): Core[]; static getByNumber(type: string, device_number: number): Core | null; static getCustom(type: string, device_number?: number): Core | null; } export {}; //# sourceMappingURL=Devices.d.ts.map