@anglr/rest
Version:
Angular module representing rest services
10 lines • 768 B
TypeScript
import { Type } from '@angular/core';
import { HttpInterceptor } from '@angular/common/http';
import type { RESTClientBase } from '../misc/classes/restClientBase';
import { RestDisabledInterceptors, RestMethodMiddlewares } from '../interfaces';
/**
* Disables specified type of http client interceptor for all calls of applied method
* @param interceptorType - Type of interceptor that will be disabled for method to which is this attached
*/
export declare function DisableInterceptor<TType extends HttpInterceptor>(interceptorType: Type<TType>): <TDecorated>(_target: RESTClientBase, _propertyKey: string, descriptor: (RestDisabledInterceptors<TType> & RestMethodMiddlewares) | TDecorated) => TDecorated;
//# sourceMappingURL=disableInterceptor.decorator.d.ts.map