Type Alias $Branch

$Branch: { $any: $Any }

Branch option to specifically handles the any type.

Use this to finely customize the behavior of your type.

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

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

Type declaration