Type Alias InferType<T>

InferType: T extends "object"
    ? object
    : T extends "function"
        ? Function
        : T extends "symbol"
            ? Symbol
            : T extends "boolean"
                ? boolean
                : T extends "number" ? number : (...) extends (...) ? (...) : (...)

Determines the return type based on the input type T.

Type Parameters

  • T