Interface ServiceRequestExecutor<Paths, Path, Method>
interface ServiceRequestExecutor<Paths, Path, Method> ((options?) => Promise<[null | string, any]>) Type Parameters
- Paths extends Record<string, any> = Record<string, any>
- Path extends keyof Paths = string
- Method extends HttpMethod = "get"
- ServiceRequestExecutor(options?): Promise<[null | string, any]>
Parameters
Optional options: {
pathParams?: ClientParams<Paths, Path, Method> extends {
path?: P;
}
? P
: never;
queryParams?: ClientParams<Paths, Path, Method> extends {
query?: Q;
}
? Q
: never;
body?: ClientBody<Paths, Path, Method>;
requestOptions?: RequestOptions;
}Optional pathParams?: ClientParams<Paths, Path, Method> extends {
path?: P;
}
? P
: never
Optional queryParams?: ClientParams<Paths, Path, Method> extends {
query?: Q;
}
? Q
: never
Optional body?: ClientBody<Paths, Path, Method>
Optional requestOptions?: RequestOptions
Returns Promise<[null | string, any]>
Runtime service request executor injected into method context Allows imperative execution of the service request defined by the decorator