UNPKG

xiot-core-spec-ts

Version:
12 lines (11 loc) 562 B
import { ObjectWithLifecycle } from '../../../typedef/lifecycle/ObjectWithLifecycle'; import { UnitDefinition } from '../../../typedef/definition/UnitDefinition'; export declare class UnitDefinitionWithLifecycleCodec { static encode(obj: ObjectWithLifecycle<UnitDefinition>): { lifecycle: string; definition: any; }; static encodeArray(resource: ObjectWithLifecycle<UnitDefinition>[]): any[]; static decode(o: any): ObjectWithLifecycle<UnitDefinition>; static decodeArray(arr: any[]): ObjectWithLifecycle<UnitDefinition>[]; }