@plyaz/types 1.22.3 → 1.22.4

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.
@@ -7,7 +7,7 @@
7
7
  import type { ApiClientOptions } from '../../api';
8
8
  import type { StoreKey } from '../../store';
9
9
  import type { FeatureFlagValue, FeatureFlagPollingConfig, CacheStrategyType } from '../../features';
10
- import type { PackageErrorLike } from '../../errors';
10
+ import type { PackageErrorLike, MessageCatalog } from '../../errors';
11
11
  import type { GlobalErrorHandlerConfig, ErrorHandlerLogger } from '../../errors/middleware';
12
12
  import type { CoreAppEnvironment, CoreAppContext, CoreRuntimeEnvironment, CoreServiceRuntime } from '../modules';
13
13
  import type { CoreDbServiceConfig } from '../services';
@@ -451,6 +451,8 @@ export interface CoreErrorHandlerInitConfig extends Omit<GlobalErrorHandlerConfi
451
451
  *
452
452
  * @example
453
453
  * ```typescript
454
+ * import type { MessageCatalog } from '@plyaz/types/errors';
455
+ *
454
456
  * errorHandler: {
455
457
  * localization: {
456
458
  * defaultLocale: 'es',
@@ -468,7 +470,7 @@ export interface CoreErrorHandlerInitConfig extends Omit<GlobalErrorHandlerConfi
468
470
  /** Fallback locale if translation not found (default: 'en') */
469
471
  fallbackLocale?: string;
470
472
  /** Additional message catalogs to merge with built-in messages */
471
- additionalCatalogs?: Record<string, unknown>;
473
+ additionalCatalogs?: Record<string, MessageCatalog>;
472
474
  /** Replace built-in catalogs entirely (default: false) */
473
475
  replaceBuiltIn?: boolean;
474
476
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.22.3",
3
+ "version": "1.22.4",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",