Skip to content

Commit 0a2f002

Browse files
authored
fix(core): unhandled error typings (#10268)
1 parent b3abc5f commit 0a2f002

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/core/global-types.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,21 @@ interface ModuleResolver {
77
}
88

99
/**
10-
* An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code.
10+
* An extended JavaScript Error which will have the nativeException property initialized in case the error is caused by executing platform-specific code.
1111
*/
1212
declare interface NativeScriptError extends Error {
1313
/**
1414
* Represents the native error object.
1515
*/
16-
nativeError: any;
16+
nativeException?: any;
17+
/**
18+
* The native stack trace.
19+
*/
20+
stackTrace?: string;
21+
/**
22+
* Javascript portion of stack trace.
23+
*/
24+
stack?: string;
1725
}
1826

1927
//Augment the NodeJS global type with our own extensions

0 commit comments

Comments
 (0)