Type Alias _Positive<T, U, $O>

_Positive<T, U, $O>: T extends U & infer R
    ? `${T}` extends `-${string}`
        ? $ResolveBranch<T, $O, [$Else]>
        : U extends T
            ? $ResolveBranch<T, $O, [$Then]> | $ResolveBranch<T, $O, [$Else]>
            : [T, R] extends [R, T]
                ? $ResolveBranch<T, $O, [$Then]>
                : $ResolveBranch<number, $O, [$Then]> | $ResolveBranch<T, $O, [$Else]>
    : never

Type Parameters