1 | /**
|
2 | * @function getReturnOfExpression
|
3 | * @deprecated from TS v2.8 use built-in ReturnType<T> or $Call API
|
4 | * @description infer the return type from a given "expression" (at runtime it's equivalent of "noop")
|
5 | * @template RT - ReturnType
|
6 | * @param expression: (...params: any[]) => RT
|
7 | * @returns undefined as RT
|
8 | */
|
9 | export declare function getReturnOfExpression<RT>(expression: (...params: any[]) => RT): RT;
|