nx
Version:
15 lines • 687 B
TypeScript
/**
* Returns an array of CallSite objects representing the current call stack.
*
* NOTE: The returned CallSite[] does not include the frame for getCallSites itself,
* but will include the function that called getCallSites. If you are checking for
* things like recursion, you need to make sure to account for that.
*
* The behavior should match node:util.getCallSites, introduced in Node.js v22.0.0.
*
* @todo(@AgentEnder) Move this to node:util when we remove support for Node.js versions < 22, around Nx 24
*
* @returns {NodeJS.CallSite[]} An array of CallSite objects.
*/
export declare function getCallSites(): NodeJS.CallSite[];
//# sourceMappingURL=call-sites.d.ts.map