@adobe/ecs - v0.2.1
    Preparing search index...

    Type Alias ToType<T>

    ToType: T extends AndSchema
        ? UnionToIntersection<ToType<T["allOf"][number]>>
        : T extends OrSchema
            ? ToType<T["anyOf"][number]>
            : T extends { const: infer C }
                ? C
                : T extends EntitySchema
                    ? Entity
                    : T extends ObjectSchema
                        ? ObjectToType<T>
                        : T extends StringSchema
                            ? string
                            : T extends ArraySchema<infer U>
                                ? ArrayToType<T, ToType<U>>
                                : T extends SetSchema<infer U>
                                    ? ReadonlySet<ToType<U>>
                                    : T extends MapSchema<infer K, infer V>
                                        ? ReadonlyMap<ToType<(...)>, ToType<(...)>>
                                        : T extends NumberSchema
                                            ? number
                                            : (...) extends (...) ? (...) : (...)

    A literal const narrows the type, a fixed-length array is a tuple, and a set or map is a ReadonlySet or ReadonlyMap; otherwise the structural type is used.

    Type Parameters