UNPKG

@anglr/rest

Version:

Angular module representing rest services

18 lines 638 B
/** * Enables AVRO encoding for response object received in body * @param namespace - Name of namespace in which is type defined * @param typeName - Name of type that should be used */ export function AvroResponse(namespace, typeName) { return function (_target, _propertyKey, descriptor) { //TODO: finish, create middleware used for handling data // descriptor.additionalInfo.avroResponse = // { // name: typeName, // namespace: namespace // }; console.log(namespace, typeName); return descriptor; }; } //# sourceMappingURL=avroResponse.decorator.js.map