Skip to content

Commit 351d470

Browse files
committed
Update TypeScript definition to maximize compatibility when used with error-stack-parser
1 parent bf8d635 commit 351d470

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

stackframe.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
// Type definitions for StackFrame v1.2.0
1+
// Type definitions for StackFrame v1.3.0
22
// Project: https://github.com/stacktracejs/stackframe
33
// Definitions by: Eric Wendelin <https://www.eriwen.com>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
55

6-
export as namespace StackFrame; // global for non-module UMD users
7-
8-
export = StackFrame;
9-
106
declare namespace StackFrame {
117
export interface StackFrameOptions {
128
isConstructor?: boolean;
@@ -72,3 +68,5 @@ declare class StackFrame {
7268

7369
toString(): string;
7470
}
71+
72+
export default StackFrame;

0 commit comments

Comments
 (0)