类型别名 MapRuntimeType<T>

MapRuntimeType<T>: T extends NumberConstructor
    ? number
    : T extends StringConstructor
        ? string
        : T extends BooleanConstructor
            ? boolean
            : T extends SymbolConstructor
                ? symbol
                : T extends BigIntConstructor
                    ? bigint
                    : T extends ArrayConstructor
                        ? any[]
                        : T extends FunctionConstructor
                            ? Function
                            : T extends ObjectConstructor
                                ? any
                                : T extends null
                                    ? null
                                    : T extends undefined
                                        ? undefined
                                        : (...) extends (...)
                                            ? (...)
                                            : (...)

映射构造函数/类型到实际参数类型

类型参数

  • T