UNPKG

json-schema-typescript-generator

Version:
14 lines 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.constantGenerator = void 0; const constantGenerator = (locatedSchema) => { const constant = locatedSchema.schema.const; if (constant === undefined) { return; } return (typeof constant === 'string') ? `'${constant}'` : `${constant}`; }; exports.constantGenerator = constantGenerator; //# sourceMappingURL=constant-generator.js.map