InferParam
此内容尚不支持你的语言。
InferParam<
P> =PextendsQueryDescriptor<infer C> ?QueryInstance<C> :PextendsResDescriptor<infer T> ?T:PextendsResMutDescriptor<infer T> ?ResMutInstance<T> :PextendsCommandsDescriptor?CommandsInstance:PextendsEventWriterDescriptor<infer T> ?EventWriterInstance<T> :PextendsEventReaderDescriptor<infer T> ?EventReaderInstance<T> :PextendsRemovedQueryDescriptor<infer _T> ?RemovedQueryInstance<_T> :PextendsGetWorldDescriptor?World:never
Defined in: ecs/system.ts:106
One parameter’s declaration resolved to the value a system body receives.
InferParams maps this over a whole list; a request this does not
recognise resolves to never, which is what makes a bad parameter a type
error at the definition rather than a surprise at the call.
Type Parameters
Section titled “Type Parameters”P