UNPKG

@anglr/rest

Version:

Angular module representing rest services

8 lines 796 B
import type { RESTClientBase } from '../misc/classes/restClientBase'; import { ResponseTransformFunc, RestMethodMiddlewares, RestResponseTransform } from '../interfaces'; /** * Defines method name that will be called and modifies response * @param methodNameOrFuncs - Name of method that will be called to modify response, method takes Observable and returns required type, or method directly or array of methods that will be called sequentialy */ export declare function ResponseTransform(methodNameOrFuncs?: string | ResponseTransformFunc<any, any> | ResponseTransformFunc<any, any>[]): <TDecorated>(target: RESTClientBase, propertyKey: string, descriptor: (RestResponseTransform & RestMethodMiddlewares) | TDecorated) => TDecorated; //# sourceMappingURL=responseTransform.decorator.d.ts.map