@audiotool/nexus - v0.0.12
    Preparing search index...

    Type Alias EntityWithOverwrites<T>

    EntityWithOverwrites: { [K in T]: _EntityWithOverwrites<K> }[T]

    Expands to

    type _EntityWithArg<T> = {
    entity: NexusEntity<T>
    overwrites?: ConstructorTypes[T]
    }

    except for when except when T is one of multiple options:

    If T is "output" | "tonematrix", this type expands to

    _EntityWithArg<"output"> | _EntityWithArg<"tonematrix">
    

    rather than

    _EntityWithArg<"output" | "tonematrix">
    

    which causes typescript to make sure that the entity field matches the type of the overwrites field, and doesn't just take the type union for either of these fields.

    Type Parameters