Class ClientLimitedMessageComponent<T, N>Abstract

Type Parameters

  • T
  • N extends number

Hierarchy (view full)

Constructors

Constructors

  • Throws an error if the array length is greater than the specified number.

    Type Parameters

    • T
    • N extends number

    Parameters

    • p: string

      The parent component name

    • c: string

      The component name

    • a: T[]

      The array to check the length of

    • n: N

      The maximum length

    Returns ClientLimitedMessageComponent<T, N>

    ${p} can't have more than ${n} ${c}