@bcrumbs.net/inbox 0.0.78 → 0.0.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type ReportErrorContext = {
|
|
2
|
+
/** Sent as Sentry `extra` and as PostHog exception properties. */
|
|
3
|
+
extra?: Record<string, unknown>;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Reports a handled error to Sentry and PostHog error tracking. Uncaught errors reach both on
|
|
7
|
+
* their own, but an error swallowed by a catch block only gets reported through here.
|
|
8
|
+
*/
|
|
9
|
+
export declare const reportError: (error: unknown, context?: ReportErrorContext) => void;
|
|
10
|
+
export {};
|