UNPKG

openapi-codegen-typescript

Version:

OpenApi codegen for generating types an mocks from swagger json file

8 lines (7 loc) 510 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var getDescription_1 = require("./getDescription"); exports.getResultStringForExportInterface = function (_a) { var schemaKey = _a.schemaKey, schema = _a.schema, interfaces = _a.interfaces; return getDescription_1.getDescription({ description: schema === null || schema === void 0 ? void 0 : schema.description }) + "export interface " + schemaKey + (interfaces ? " extends " + interfaces.join(', ') + " " : ' ') + "{\n"; };