// Structural type guard (accepts any object with id field)
if (Schema.is(Type.Obj)(unknownValue)) { ... }
// ECHO instance type guard (checks KindId brand)
if (Obj.isObject(unknownValue)) { ... }
// Reference to any object type
class Collection extends Type.makeObject<Collection>(DXN.make('com.example.type.collection', '0.1.0'))(
Schema.Struct({ objects: Schema.Array(Ref.Ref(Obj.Unknown)) }),
) {}
Runtime Effect schema for any ECHO object. Use for validation, parsing, or as a reference target for collections.
NOTE:
Schema.is(Type.Obj)does STRUCTURAL validation only (checks foridfield). UseObj.isObject()for proper ECHO instance type guards that check the KindId brand.