xiot-core-spec-ts
Version:
XIOT Specification Codec
12 lines (11 loc) • 562 B
TypeScript
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>[];
}