@sinclair/typebox
Version:
Json Schema Type Builder with Static Type Resolution for TypeScript
11 lines (9 loc) • 368 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ref = Ref;
const type_1 = require("../create/type");
const index_1 = require("../symbols/index");
/** `[Json]` Creates a Ref type. The referenced type must contain a $id */
function Ref($ref, options) {
return (0, type_1.CreateType)({ [index_1.Kind]: 'Ref', $ref }, options);
}