reactjrx 1.94.0 → 1.95.0

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,3 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
 
3
- export type SubscribeSource<Data> = (() => Observable<Data>) | Promise<Data> | Observable<Data> | (() => Promise<Data>) | (() => Data) | Data;
3
+ export type SubscribeSourceFactory<Data> = (() => Observable<Data>) | (() => Observable<Data> | undefined) | (() => Promise<Data>) | (() => Data);
4
+ export type SubscribeSource<Data> = SubscribeSourceFactory<Data> | Promise<Data> | Observable<Data> | Data;
@@ -1,4 +1,4 @@
1
1
  import { DependencyList } from 'react';
2
2
  import { SubscribeSource } from './types';
3
3
 
4
- export declare function useSubscribe<T>(source: SubscribeSource<T>, deps?: DependencyList): void;
4
+ export declare function useSubscribe<T>(source: SubscribeSource<T> | (() => T), deps?: DependencyList): void;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjrx",
3
3
  "private": false,
4
- "version": "1.94.0",
4
+ "version": "1.95.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"