Interface ServiceRequestExecutor<Paths, Path, Method>

Runtime service request executor injected into method context Allows imperative execution of the service request defined by the decorator

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"
  • 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]>