UNPKG

structured-elements

Version:

A TypeScript package for modelling and validating data

13 lines 537 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRecordSchema = void 0; const referenceContainer_1 = require("./referenceContainer"); const stringKeyedRecord_1 = require("./stringKeyedRecord"); const isRecordSchema = (api, expectation) => { if ((0, referenceContainer_1.isReferenceContainer)(api, expectation)) { return false; } return (0, stringKeyedRecord_1.isStringKeyedRecord)(expectation); }; exports.isRecordSchema = isRecordSchema; //# sourceMappingURL=recordSchema.js.map