source: imaps-frontend/node_modules/stack-generator/stack-generator.d.ts

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 761 bytes
Line 
1// Type definitions for StackGenerator v2.0
2// Project: https://github.com/stacktracejs/stack-generator
3// Definitions by: Eric Wendelin <https://www.eriwen.com>
4// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6import StackFrame = require("stackframe");
7
8declare namespace StackGenerator {
9 export type {StackFrame};
10
11 interface StackGeneratorOptions {
12 /** Maximum number of StackFrames to return. Default is 10 */
13 maxStackSize: number
14 }
15
16 /**
17 * Generate artificial backtrace by walking arguments.callee.caller chain.
18 *
19 * @param {Object} opts object
20 * @return {Array} of StackFrames
21 */
22 export function backtrace(opts: StackGeneratorOptions): StackFrame[];
23}
24
25export = StackGenerator;
Note: See TracBrowser for help on using the repository browser.