@allgemein/schema-api
Version:
Library for schema api
24 lines • 663 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.supportsJsonSchemaExport = supportsJsonSchemaExport;
exports.supportsJsonSchemaImport = supportsJsonSchemaImport;
exports.supportsJsonSchema = supportsJsonSchema;
function supportsJsonSchemaExport(x) {
if (x.toJsonSchema) {
return true;
}
return false;
}
function supportsJsonSchemaImport(x) {
if (x.fromJsonSchema) {
return true;
}
return false;
}
function supportsJsonSchema(x) {
if (supportsJsonSchemaExport(x) && supportsJsonSchemaImport(x)) {
return true;
}
return false;
}
//# sourceMappingURL=IJsonSchema.js.map