8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f7562c + 51fac41 commit 97b30d1Copy full SHA for 97b30d1
error-stack-parser.d.ts
@@ -3,17 +3,17 @@
3
// Definitions by: Eric Wendelin <https://www.eriwen.com>
4
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
6
-import StackFrame = require("stackframe");
+import StackFrame from "stackframe";
7
8
-declare module ErrorStackParser {
+declare namespace ErrorStackParser {
9
export type {StackFrame};
10
/**
11
* Given an Error object, extract the most information from it.
12
*
13
* @param {Error} error object
14
* @return {Array} of StackFrames
15
*/
16
- export function parse(error: Error): StackFrame[];
+ function parse(error: Error): StackFrame[];
17
}
18
19
-export = ErrorStackParser;
+export default ErrorStackParser;
0 commit comments