@anglr/rest
Version:
Angular module representing rest services
9 lines • 552 B
TypeScript
import { StringDictionary } from '@jscrpt/common';
import type { RESTClientBase } from '../misc/classes/restClientBase';
import { RestHttpHeaders, RestMethodMiddlewares } from '../interfaces';
/**
* Set custom headers for a REST method
* @param headersDef - custom headers in a key-value pair
*/
export declare function Headers(headersDef: StringDictionary): <TDecorated>(_target: RESTClientBase, _propertyKey: string, descriptor: (RestHttpHeaders & RestMethodMiddlewares) | TDecorated) => TDecorated;
//# sourceMappingURL=headers.decorator.d.ts.map