@signaltree/realtime 7.3.0 → 7.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signaltree/realtime",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "description": "Real-time data synchronization enhancers for SignalTree - Supabase, Firebase, and WebSocket support",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,5 +1,5 @@
1
1
  import { CleanupFn, RealtimeConfig, RealtimeEnhancerOptions, RealtimeEnhancerResult, RealtimeEvent, RealtimeSubscription } from './types';
2
- import type { Enhancer } from '@signaltree/core';
2
+ import type { ISignalTree } from '@signaltree/core';
3
3
  /**
4
4
  * Adapter interface for different real-time backends.
5
5
  *
@@ -44,6 +44,6 @@ export interface RealtimeAdapter {
44
44
  * .with(createRealtimeEnhancer(myAdapter, config));
45
45
  * ```
46
46
  */
47
- export declare function createRealtimeEnhancer<TState extends object>(adapter: RealtimeAdapter, config: RealtimeConfig<TState>, options?: RealtimeEnhancerOptions): Enhancer<{
47
+ export declare function createRealtimeEnhancer<TConfig extends object>(adapter: RealtimeAdapter, config: RealtimeConfig<TConfig>, options?: RealtimeEnhancerOptions): <T>(tree: ISignalTree<T>) => ISignalTree<T> & {
48
48
  realtime: RealtimeEnhancerResult;
49
- }>;
49
+ };
@@ -1,7 +1,7 @@
1
1
  import { RealtimeAdapter } from '../create-realtime-enhancer';
2
2
  import { RealtimeEnhancerOptions, RealtimeEnhancerResult, RealtimeSubscription } from '../types';
3
3
  import type { SupabaseClient } from '@supabase/supabase-js';
4
- import type { Enhancer } from '@signaltree/core';
4
+ import type { ISignalTree } from '@signaltree/core';
5
5
  /**
6
6
  * Supabase-specific subscription configuration.
7
7
  */
@@ -120,6 +120,6 @@ export declare function createSupabaseAdapter(client: SupabaseClient): RealtimeA
120
120
  * }));
121
121
  * ```
122
122
  */
123
- export declare function supabaseRealtime<TState extends object>(client: SupabaseClient, config: SupabaseRealtimeConfig<TState>, options?: RealtimeEnhancerOptions): Enhancer<{
123
+ export declare function supabaseRealtime<TConfig extends object>(client: SupabaseClient, config: SupabaseRealtimeConfig<TConfig>, options?: RealtimeEnhancerOptions): <T>(tree: ISignalTree<T>) => ISignalTree<T> & {
124
124
  realtime: RealtimeEnhancerResult;
125
- }>;
125
+ };