@ancon/wildcat-utils 1.22.2 → 1.22.3

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancon/wildcat-utils",
3
- "version": "1.22.2",
3
+ "version": "1.22.3",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -21,8 +21,8 @@ declare function createUseSignalRHook<RootState = unknown>(signalRConfig: Signal
21
21
  isHubConnected: boolean;
22
22
  join: (group: string) => Promise<void>;
23
23
  leave: (group: string) => Promise<void>;
24
- subscribe: <T extends SignalREventListener<unknown>>(signal: SignalRSignalName, listener: T, shouldSkipOwnClient?: boolean) => () => void;
25
- unsubscribe: <T_1 extends SignalREventListener<unknown>>(signal: SignalRSignalName, listener: T_1) => void;
24
+ subscribe: (signal: SignalRSignalName, listener: SignalREventListener, shouldSkipOwnClient?: boolean) => () => void;
25
+ unsubscribe: (signal: SignalRSignalName, listener: SignalREventListener) => void;
26
26
  getHubConnectionId: () => string | null;
27
27
  };
28
28
  export default createUseSignalRHook;
@@ -1,6 +1,6 @@
1
1
  import { SignalRHubName } from '@ancon/wildcat-types';
2
2
  import Logger from '../logger/Logger';
3
- export declare type SignalREventListener<T = unknown> = (data: T) => void;
3
+ export declare type SignalREventListener<T = any> = (data: T) => void;
4
4
  export declare type SignalRConfig = {
5
5
  /** @example "https://notification-api.ancon.io" */
6
6
  signalRApiUrl: string;