UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

16 lines (14 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Not = void 0; const type_1 = require("../clone/type"); const index_1 = require("../symbols/index"); /** `[Json]` Creates a Not type */ function Not(schema, options) { return { ...options, [index_1.Kind]: 'Not', not: (0, type_1.CloneType)(schema), }; } exports.Not = Not;