UNPKG

@sprucelabs/schema

Version:

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

6 lines (5 loc) • 199 B
export default function isIdWithVersion(item) { return (typeof item.id === 'string' && typeof item.fields === 'undefined' && typeof item.dynamicFieldSignature === 'undefined'); }