79590105

Date: 2025-04-24 08:25:59
Score: 1
Natty:
Report link

You need to declare multiple types that you want to be acceptable, for example

type TIn1 = {
    xa: number;
    xb: number;
    // ...
}

type TIn2 = {
        // ...
}

type TIn3 = {
    xa?: string;
    xb?: string;
}

And then combine them in a union: TProps = TIn1 | TIn2 | TIn3

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Антон Петров