UNPKG

sury

Version:

🧬 The fastest schema with next-gen DX

59 lines (49 loc) • 879 B
// Generated by ReScript, PLEASE EDIT WITH CARE function isReference(_withReference) { return ("$ref" in _withReference); } function classify(withRef) { if (isReference(withRef)) { return { TAG: "Reference", _0: withRef }; } else { return { TAG: "Object", _0: withRef }; } } let WithReference = { isReference: isReference, classify: classify }; function isReference$1(_withReference) { return ("$ref" in _withReference); } function classify$1(withRef) { if (isReference$1(withRef)) { return { TAG: "Reference", _0: withRef }; } else { return { TAG: "Object", _0: withRef }; } } let WithReference$1 = { isReference: isReference$1, classify: classify$1 }; let Mutable = { WithReference: WithReference$1 }; export { WithReference, Mutable, } /* No side effect */