Skip to content

UnwrapQueryArg

UnwrapQueryArg<T> = T extends MutWrapper<infer C> ? C : T extends AddedWrapper<infer C> ? C : T extends ChangedWrapper<infer C> ? C : T

Defined in: ecs/query.ts:344

The component a QueryArg asks for, with any wrapper taken off — Mut(X), Added(X) and Changed(X) all read as X, because a wrapper says how the component is accessed and not which one it is.

T