UNPKG

@sprucelabs/schema

Version:

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

9 lines (8 loc) • 296 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isIdWithVersion; function isIdWithVersion(item) { return (typeof item.id === 'string' && typeof item.fields === 'undefined' && typeof item.dynamicFieldSignature === 'undefined'); }