@yaagoub/decorators
Version:
Angular decorators
32 lines (31 loc) • 806 B
TypeScript
import { HttpMethodOptions } from './get-from-metadata-method';
import { ResponseType } from '../types/response-type';
export declare function getFromMetadata({ instance, target, methodName, args }: {
instance: any;
target: any;
methodName: string;
args: any[];
}): {
fromInstance: {
body: any;
queries: {
[key: string]: any;
};
paths: {
[key: string]: any;
};
method: HttpMethodOptions | undefined;
timeout: {
timeout: number;
} | undefined;
responseType: ResponseType | undefined;
};
fromTarget: {
baseUrl?: string;
};
fromBoth: {
headers: Record<string, string>;
baseUrl: string;
withCredentials: string | undefined;
};
};