TS-Scribe - v0.6.2
    Preparing search index...

    Type Alias TypeOfType<TypeString>

    TypeOfType: TypeString extends "string"
        ? string
        : TypeString extends "number"
            ? number
            : TypeString extends "boolean"
                ? boolean
                : TypeString extends "object"
                    ? Record<string, unknown>
                    : TypeString extends "function"
                        ? Function
                        : TypeString extends "bigint"
                            ? bigint
                            : TypeString extends "symbol"
                                ? symbol
                                : TypeString extends "undefined" ? undefined : unknown

    A type that infers the type based on the result of the typeof operator in JavaScript. It maps a string representing a typeof result to the corresponding TypeScript type.

    Type Parameters

    • TypeString

      A string that represents the result of typeof.