@plyaz/types 1.21.4 → 1.22.0
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.
|
@@ -46,10 +46,12 @@ export interface GlobalErrorHandlerConfig {
|
|
|
46
46
|
* Provides methods to capture errors and manage the error store.
|
|
47
47
|
*/
|
|
48
48
|
export interface GlobalErrorHandler {
|
|
49
|
-
/** Manually capture an error */
|
|
49
|
+
/** Manually capture an error (supports single error or array of errors) */
|
|
50
50
|
captureError: (error: unknown, source?: string) => void;
|
|
51
|
-
/** Manually capture an exception (alias) */
|
|
51
|
+
/** Manually capture an exception (alias for captureError) */
|
|
52
52
|
captureException: (error: unknown, source?: string) => void;
|
|
53
|
+
/** Capture multiple errors at once (batch operation) */
|
|
54
|
+
captureErrors: (errors: unknown[], source?: string) => void;
|
|
53
55
|
/** Get the error store */
|
|
54
56
|
getStore: () => ErrorStoreActions;
|
|
55
57
|
/** Cleanup and remove listeners */
|
|
@@ -86,7 +88,7 @@ export interface BackendErrorStore extends ErrorStoreActions {
|
|
|
86
88
|
/**
|
|
87
89
|
* Keys for backend error store action methods.
|
|
88
90
|
*/
|
|
89
|
-
export type BackendErrorStoreActionKeys = 'addError' | 'removeError' | 'clearErrors' | 'clearErrorsByCategory' | 'clearErrorsBySource' | 'dismissError' | 'dismissAllErrors' | 'setConnected' | 'reset';
|
|
91
|
+
export type BackendErrorStoreActionKeys = 'addError' | 'addErrors' | 'removeError' | 'clearErrors' | 'clearErrorsByCategory' | 'clearErrorsBySource' | 'dismissError' | 'dismissAllErrors' | 'setConnected' | 'reset';
|
|
90
92
|
/**
|
|
91
93
|
* Keys for backend error store getter methods.
|
|
92
94
|
*/
|
package/package.json
CHANGED