UNPKG

@azure/digital-twins-core

Version:
21 lines 886 B
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { __rest } from "tslib"; export function createLroSpec(inputs) { const { args, spec, sendOperationFn } = inputs; return { requestMethod: spec.httpMethod, requestPath: spec.path, sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: (path, options) => { const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]); return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal })); }, }; } //# sourceMappingURL=lroImpl.js.map