Type Alias InferGroupParams<TGroupField, TNumberOfFields>

InferGroupParams: TNumberOfFields extends 0
    ? InferEmptyGroupParams
    : TNumberOfFields extends 1
        ? InferGroupWithOneFieldParams<TGroupField>
        : InferGroupWithMultipleFieldsParams<TGroupField>

Type Parameters

  • TGroupField extends ReadonlyDeep<H5PFieldGroupWithoutLabel>
  • TNumberOfFields = TGroupField["fields"]["length"]