UNPKG

@microsoft/kiota-abstractions

Version:

Core abstractions for kiota generated libraries in TypeScript and JavaScript

11 lines 1.39 kB
import type { RequestOption } from "./requestOption.js"; import type { ResponseHandler } from "./responseHandler.js"; type originalCallType<modelType, queryParametersType, headersType> = (q?: queryParametersType, h?: headersType, o?: RequestOption[], responseHandler?: ResponseHandler) => Promise<modelType>; type originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType> = (requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[], responseHandler?: ResponseHandler) => Promise<modelType>; /** This class can be used to wrap a request using the fluent API and get the native response object in return. */ export declare class NativeResponseWrapper { static CallAndGetNative: <modelType, nativeResponseType, queryParametersType, headersType>(originalCall: originalCallType<modelType, queryParametersType, headersType>, q?: queryParametersType, h?: headersType, o?: RequestOption[]) => Promise<nativeResponseType>; static CallAndGetNativeWithBody: <modelType, nativeResponseType, queryParametersType, headersType, requestBodyType>(originalCall: originalCallWithBodyType<modelType, queryParametersType, headersType, requestBodyType>, requestBody: requestBodyType, q?: queryParametersType, h?: headersType, o?: RequestOption[]) => Promise<nativeResponseType>; } export {}; //# sourceMappingURL=nativeResponseWrapper.d.ts.map