Returns the Effect Schema for a type entity.
Type.Obj / Type.Relation entities the source Effect Schema is
read from a hidden slot — these overloads preserve the instance type.Type.Type entities (the meta-schema kind) the schema is rebuilt from
type.jsonSchema; the instance type isn't statically knowable so the wide
AnyEntity overload widens to Schema.Codec<any, any>.Always call this when you need to interact with the Effect Schema API
(e.g. before passing to Effect.Schema functions). For ECHO-side APIs
(Obj.make, Filter.type, Ref) pass the type entity directly.
Only accepts Type.AnyEntity — raw Schema.Schema values can be used
directly without unwrapping.
Returns the Effect Schema for a type entity.
Type.Obj / Type.Relation entities the source Effect Schema is
read from a hidden slot — these overloads preserve the instance type.Type.Type entities (the meta-schema kind) the schema is rebuilt from
type.jsonSchema; the instance type isn't statically knowable so the wide
AnyEntity overload widens to Schema.Codec<any, any>.Always call this when you need to interact with the Effect Schema API
(e.g. before passing to Effect.Schema functions). For ECHO-side APIs
(Obj.make, Filter.type, Ref) pass the type entity directly.
Only accepts Type.AnyEntity — raw Schema.Schema values can be used
directly without unwrapping.
Returns the Effect Schema for a type entity.
Type.Obj/Type.Relationentities the source Effect Schema is read from a hidden slot — these overloads preserve the instance type.Type.Typeentities (the meta-schema kind) the schema is rebuilt fromtype.jsonSchema; the instance type isn't statically knowable so the wideAnyEntityoverload widens toSchema.Codec<any, any>.Always call this when you need to interact with the Effect Schema API (e.g. before passing to Effect.Schema functions). For ECHO-side APIs (
Obj.make,Filter.type,Ref) pass the type entity directly.Only accepts
Type.AnyEntity— rawSchema.Schemavalues can be used directly without unwrapping.