From 0a2f002b57a9d1c0950534e8a90d0dc628dc3d31 Mon Sep 17 00:00:00 2001 From: Jason Cassidy <47318351+jcassidyav@users.noreply.github.com> Date: Fri, 14 Apr 2023 00:49:01 +0100 Subject: [PATCH] fix(core): unhandled error typings (#10268) --- packages/core/global-types.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/core/global-types.d.ts b/packages/core/global-types.d.ts index 983834cfa..2a8a55b54 100644 --- a/packages/core/global-types.d.ts +++ b/packages/core/global-types.d.ts @@ -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 { /** * 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