terminal-cv/node_modules/utility-types/dist/functional-helpers.d.ts
greglebreton 4e8a693745
Some checks failed
continuous-integration/drone/push Build is failing
add garagenum exp + maj url site projets
2023-01-08 16:50:31 +01:00

10 lines
411 B
TypeScript

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