InferType<T>:T extends "object" ? object : T extends "function" ? Function : T extends "symbol" ? Symbol : T extends "boolean" ? boolean : T extends "number" ? number : T extends "string" ? string : T extends IConstructor<infer TResult> ? TResult : never
Determines the return type based on the input type T.
Determines the return type based on the input type T.