UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

12 lines (11 loc) • 446 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = buildSchema; const SchemaRegistry_1 = __importDefault(require("../singletons/SchemaRegistry")); function buildSchema(schema) { SchemaRegistry_1.default.getInstance().trackSchema(schema); return schema; }