UNPKG

@anglr/rest

Version:

Angular module representing rest services

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