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