Type Alias $<T, $O>

$: $ResolveOptions<[$O["exact"], false]> extends true
    ? $IsDistributive<
        $O,
        {
            $else: NumberPlus.IsNumber._N<T, $O>;
            $then: NumberPlus.IsNumber._D<T, $O>;
        },
    >
    : Assignable.$<T, number, $O>

🧰 type util

Validate if T is number or number literals.

This is a type util for building custom types. It does not check against special types.

Type Parameters