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