UNPKG

@autorest/openapi-to-typespec

Version:

Autorest plugin to scaffold a Typespec definition from an OpenAPI document

9 lines 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getHttpMethod = void 0; function getHttpMethod(_codeModel, operation) { var _a, _b; return (_b = (_a = operation.requests) === null || _a === void 0 ? void 0 : _a[0].protocol.http) === null || _b === void 0 ? void 0 : _b.method; } exports.getHttpMethod = getHttpMethod; //# sourceMappingURL=operations.js.map