Skip to content

Commit 97b30d1

Browse files
authored
Merge pull request #74 from alessioprestileo/master
Update types to reflect issue#45
2 parents 1f7562c + 51fac41 commit 97b30d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

error-stack-parser.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
// Definitions by: Eric Wendelin <https://www.eriwen.com>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
import StackFrame = require("stackframe");
6+
import StackFrame from "stackframe";
77

8-
declare module ErrorStackParser {
8+
declare namespace ErrorStackParser {
99
export type {StackFrame};
1010
/**
1111
* Given an Error object, extract the most information from it.
1212
*
1313
* @param {Error} error object
1414
* @return {Array} of StackFrames
1515
*/
16-
export function parse(error: Error): StackFrame[];
16+
function parse(error: Error): StackFrame[];
1717
}
1818

19-
export = ErrorStackParser;
19+
export default ErrorStackParser;

0 commit comments

Comments
 (0)