fix(core): unhandled error typings (#10268)

This commit is contained in:
Jason Cassidy
2023-04-14 00:49:01 +01:00
committed by GitHub
parent b3abc5f5ae
commit 0a2f002b57

View File

@ -7,13 +7,21 @@ interface ModuleResolver {
} }
/** /**
* An extended JavaScript Error which will have the nativeError property initialized in case the error is caused by executing platform-specific code. * An extended JavaScript Error which will have the nativeException property initialized in case the error is caused by executing platform-specific code.
*/ */
declare interface NativeScriptError extends Error { declare interface NativeScriptError extends Error {
/** /**
* Represents the native error object. * Represents the native error object.
*/ */
nativeError: any; nativeException?: any;
/**
* The native stack trace.
*/
stackTrace?: string;
/**
* Javascript portion of stack trace.
*/
stack?: string;
} }
//Augment the NodeJS global type with our own extensions //Augment the NodeJS global type with our own extensions