@happyvertical/smrt-types 0.35.4 → 0.36.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +14 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -536,11 +536,11 @@ export declare interface Signal {
536
536
  * Sanitized method arguments (sensitive data removed)
537
537
  * Objects with @sensitive JSDoc tags are excluded
538
538
  */
539
- args?: any[];
539
+ args?: unknown[];
540
540
  /**
541
541
  * Method result (only present on 'end' signals)
542
542
  */
543
- result?: any;
543
+ result?: unknown;
544
544
  /**
545
545
  * Error that was thrown (only present on 'error' signals)
546
546
  */
@@ -558,7 +558,7 @@ export declare interface Signal {
558
558
  * Optional additional context
559
559
  * Can include tracing IDs, user context, request metadata, etc.
560
560
  */
561
- metadata?: Record<string, any>;
561
+ metadata?: Record<string, unknown>;
562
562
  }
563
563
 
564
564
  /**
@@ -777,7 +777,17 @@ export declare interface SmrtRouteModule {
777
777
  displayName: string;
778
778
  /** Optional module description. */
779
779
  description?: string;
780
- /** Route definitions keyed by package-local name. */
780
+ /**
781
+ * Route definitions keyed by package-local name.
782
+ *
783
+ * A heterogeneous registry: each entry is a `SmrtRouteDefinition` with its
784
+ * own `TData`/`TLoadInput`/`TProps`. `TLoadInput` sits in a contravariant
785
+ * position (`load?: (input: TLoadInput) => …`), so a concrete route
786
+ * (`SmrtRouteDefinition<Foo, Bar>`) is NOT assignable to
787
+ * `SmrtRouteDefinition<unknown, unknown, unknown>` — narrowing the params to
788
+ * `unknown` would reject every real route registration. Like
789
+ * {@link ModuleComponentType}, this is an irreducible registry `any`.
790
+ */
781
791
  routes: Record<string, SmrtRouteDefinition<any, any, any>>;
782
792
  }
783
793
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-types",
3
- "version": "0.35.4",
3
+ "version": "0.36.1",
4
4
  "description": "Shared type definitions for the HAVE SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",