UNPKG

@autorest/openapi-to-cadl

Version:

Autorest plugin to scaffold a Typespec definition from an OpenAPI document

14 lines 439 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getDataTypes = void 0; const dataTypes = new WeakMap(); function getDataTypes(codeModel) { let dataTypeMap = dataTypes.get(codeModel); if (!dataTypeMap) { dataTypeMap = new WeakMap(); dataTypes.set(codeModel, dataTypeMap); } return dataTypeMap; } exports.getDataTypes = getDataTypes; //# sourceMappingURL=data-types.js.map