@open-kingdom/shared-frontend-feature-error-autologger 0.0.2-16 → 0.0.2-17

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.
@@ -1,5 +1,5 @@
1
- import { Component, ReactNode, ErrorInfo } from 'react';
2
- import { LoggerFn, NotificationHandlerFn } from '../error-autologger.types';
1
+ import { Component, type ReactNode, type ErrorInfo } from 'react';
2
+ import type { LoggerFn, NotificationHandlerFn } from '../error-autologger.types';
3
3
  export interface ErrorBoundaryProps {
4
4
  logger?: LoggerFn;
5
5
  notificationHandler?: NotificationHandlerFn;
@@ -1,4 +1,4 @@
1
- import { NormalizedError } from './error-autologger.types';
1
+ import type { NormalizedError } from './error-autologger.types';
2
2
  export declare class ErrorAdapter {
3
3
  adapt(error: unknown, context?: Record<string, unknown>): NormalizedError;
4
4
  private isObject;
@@ -1,4 +1,4 @@
1
- import { ErrorHandlerConfig, HandleErrorOptions } from './error-autologger.types';
1
+ import type { ErrorHandlerConfig, HandleErrorOptions } from './error-autologger.types';
2
2
  import { ErrorAdapter } from './error-autologger.adapter';
3
3
  export interface ErrorReporterConfig extends ErrorHandlerConfig {
4
4
  adapter?: ErrorAdapter;
@@ -1,4 +1,4 @@
1
- import { HandleErrorOptions } from '../error-autologger.types';
2
- import { ErrorReporterConfig } from '../error-autologger';
1
+ import type { HandleErrorOptions } from '../error-autologger.types';
2
+ import { type ErrorReporterConfig } from '../error-autologger';
3
3
  export declare function useErrorReporter(options?: ErrorReporterConfig): (error: unknown, opts?: HandleErrorOptions) => void;
4
4
  //# sourceMappingURL=use-error-reporter.hook.d.ts.map
@@ -1,3 +1,3 @@
1
- import { ErrorListenerConfig } from '../error-autologger.types';
1
+ import type { ErrorListenerConfig } from '../error-autologger.types';
2
2
  export declare function useGlobalErrorListener(config?: ErrorListenerConfig): void;
3
3
  //# sourceMappingURL=use-global-error-listener.hook.d.ts.map
@@ -1,4 +1,4 @@
1
- import { CleanupFn, ErrorListenerConfig } from '../error-autologger.types';
1
+ import type { CleanupFn, ErrorListenerConfig } from '../error-autologger.types';
2
2
  export declare class GlobalErrorListener {
3
3
  private reporter;
4
4
  private notify;
@@ -1,5 +1,5 @@
1
- import { Middleware } from '@reduxjs/toolkit';
2
- import { RTKErrorMiddlewareConfig, ReduxRTKErrorMiddlewareConfig } from '../error-autologger.types';
1
+ import type { Middleware } from '@reduxjs/toolkit';
2
+ import type { RTKErrorMiddlewareConfig, ReduxRTKErrorMiddlewareConfig } from '../error-autologger.types';
3
3
  export declare function createRTKErrorMiddleware(config?: RTKErrorMiddlewareConfig): Middleware;
4
4
  export declare function createReduxRTKErrorMiddleware(config: ReduxRTKErrorMiddlewareConfig): Middleware;
5
5
  //# sourceMappingURL=rtk-error.middleware.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-kingdom/shared-frontend-feature-error-autologger",
3
- "version": "0.0.2-16",
3
+ "version": "0.0.2-17",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },