xiot-core-spec-ts
Version:
XIOT Specification Codec
12 lines (11 loc) • 576 B
TypeScript
import { ObjectWithLifecycle } from '../../../typedef/lifecycle/ObjectWithLifecycle';
import { DeviceDefinition } from '../../../typedef/definition/DeviceDefinition';
export declare class DeviceDefinitionWithLifecycleCodec {
static encode(obj: ObjectWithLifecycle<DeviceDefinition>): {
lifecycle: string;
definition: any;
};
static encodeArray(resource: ObjectWithLifecycle<DeviceDefinition>[]): any[];
static decode(o: any): ObjectWithLifecycle<DeviceDefinition>;
static decodeArray(arr: any[]): ObjectWithLifecycle<DeviceDefinition>[];
}