Type Alias $<T, $O>

$: $ResolveOptions<[$O["exact"], $ExactDefault]> extends true
    ? $IsDistributive<
        $O,
        {
            $else: IsNotStringLiteral._EN<T, $O>;
            $then: IsNotStringLiteral._ED<T, $O>;
        },
    >
    : $IsDistributive<
        $O,
        {
            $else: IsNotStringLiteral._N<T, $O>;
            $then: IsNotStringLiteral._D<T, $O>;
        },
    >

🧰 type util

Validate if T is string literals.

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

Type Parameters