Expands to
type _EntityWithArg<T> = { entity: NexusEntity<T> overwrites?: ConstructorTypes[T]} Copy
type _EntityWithArg<T> = { entity: NexusEntity<T> overwrites?: ConstructorTypes[T]}
except for when except when T is one of multiple options:
T
If T is "output" | "tonematrix", this type expands to
"output" | "tonematrix"
_EntityWithArg<"output"> | _EntityWithArg<"tonematrix"> Copy
_EntityWithArg<"output"> | _EntityWithArg<"tonematrix">
rather than
_EntityWithArg<"output" | "tonematrix"> Copy
_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.
entity
overwrites
Expands to
except for when except when
Tis one of multiple options:If
Tis"output" | "tonematrix", this type expands torather than
which causes typescript to make sure that the
entityfield matches the type of theoverwritesfield, and doesn't just take the type union for either of these fields.