type-plus
    Preparing search index...

    Type Alias $<T, $O>

    $: $ResolveOptions<[$O["exact"], false]> extends true
        ? $Distributive.Parse<
            $O,
            { $else: IsString._N<T, $O>; $then: IsString._D<T, $O> },
        >
        : Assignable.$<T, string, $O>

    🧰 type util

    Validate if T is string or string literals.

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

    Type Parameters