Function Matrix

  • @Matrix decorator creates a two-dimensional array based on the specified width and height arguments.

    Type Parameters

    • This extends object

      The type of the class the decorator is applied to.

    • Value

      The type of the decorated property.

    • Args extends string

    Parameters

    • width: NumberOrRecursiveKey<This, Args>

      The width of the matrix, which can be a numeric value or a computed key.

    • height: NumberOrRecursiveKey<This, Args>

      The height of the matrix, determining the number of elements.

    • padding: number = 0

      Optional padding value applied to each row of the matrix.

    Returns DecoratorType<This, Value>

    The property decorator function.