Skip to content
Typecorev0.10.0

Grouped

type Grouped<Name extends string> = Name extends
    | `${string} & ${string}`
    | `${string} | ${string}`
    ? `(${Name})`
    : Name;