Const// 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
const Collection = Schema.Struct({
objects: Schema.Array(Type.Ref(Type.Obj)),
}).pipe(Type.object({ typename: 'Collection', version: '0.1.0' }));
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.