@dxos/echo
    Preparing search index...

    Type Alias InstanceType<T>

    InstanceType: T extends RelationClass<
        any,
        infer Props,
        infer Source,
        infer Target,
        any,
    >
        ? Endpoints<Source, Target> & Props & OfKind<
            typeof EntityModule.Kind.Relation,
        >
        : T extends Type.Relation<infer Props, infer Source, infer Target, any>
            ? Endpoints<Source, Target> & Props & OfKind<
                typeof EntityModule.Kind.Relation,
            >
            : T extends ObjClass<any, infer A, any>
                ? A & OfKind<typeof EntityModule.Kind.Object>
                : T extends Type.Obj<infer A, any>
                    ? A & OfKind<typeof EntityModule.Kind.Object>
                    : T extends Type.Type<infer A>
                        ? A & OfKind<typeof EntityModule.Kind.Type>
                        : never

    Instance type produced by a Type entity.

    Accepts ONLY AnyEntity inputs — Type.Obj, Type.Relation, or Type.Type. Raw Effect Schema.Schema values are rejected: for those, use Schema.Schema.Type<typeof Foo> directly. This separation keeps the type system honest about which values represent ECHO entities versus plain Effect schemas.

    Dispatches on the entity kind:

    • Relation<Props, S, T> → Endpoints<S,T> & Props & OfKind<Relation>
    • Obj<A> → A & OfKind<Object>
    • Type<A> → A & OfKind<Type>

    Type Parameters