openapi-codegen-typescript
Version:
OpenApi codegen for generating types an mocks from swagger json file
8 lines (7 loc) • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var getDescription_1 = require("./getDescription");
exports.getDictionaryValueResultString = function (_a) {
var description = _a.description, propertyName = _a.propertyName, dictionaryRef = _a.dictionaryRef, value = _a.value;
return getDescription_1.getDescription({ description: description }) + "\t" + propertyName + ": {\n\t[key in " + dictionaryRef + "]: " + value + ";\n};\n";
};