Type Alias $Branch

$Branch: {
    $any: $Any;
}

🧰 type util

Branch option for specifically handling the type any.

Use this to finely customize the behavior of your type.

type YourType<
T,
$Options extends YourType.$Options = YourType.$Default
> = ...

namespace YourType {
export type $Options = $Any.$Options
export type $Branch = $Any.$Branch
}

type R = YourType<T, YourType.$Branch> extends $Any ? HandleAny : HandleOthers