1 | /**
|
2 | Creates a `.stack` property on the given `object`, which when accessed returns a string representing the location in the code at which `captureStackTrace()` was called.
|
3 |
|
4 | @example
|
5 | ```
|
6 | import captureStackTrace from 'capture-stack-trace';
|
7 |
|
8 | const object = {};
|
9 | captureStackTrace(object);
|
10 | object.stack; // Similar to `new Error().stack`
|
11 | ```
|
12 | */
|
13 | export default function captureStackTrace(targetObject: object): void; // eslint-disable-line @typescript-eslint/ban-types
|