@sinclair/typebox
Version:
Json Schema Type Builder with Static Type Resolution for TypeScript
11 lines (9 loc) • 314 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.String = void 0;
const index_1 = require("../symbols/index");
/** `[Json]` Creates a String type */
function String(options = {}) {
return { ...options, [index_1.Kind]: 'String', type: 'string' };
}
exports.String = String;