The IChildParams interface defines the parameters for creating a child element. It extends the ISize interface and allows specifying an optional payload of type T.

interface IChildParams<T extends any = unknown> {
    height: number;
    payload?: T;
    width: number;
}

Type Parameters

  • T extends any = unknown

    The type of the payload.

Hierarchy (View Summary)

Properties

Properties

height: number
payload?: T
width: number