@reactables/core 0.4.1-alpha.0 → 0.4.1-alpha.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.
@@ -3,12 +3,14 @@ import { SliceConfig, Cases } from './createSlice';
3
3
  import { Reactable } from '../Models/Reactable';
4
4
  import { Effect } from '../Models/Effect';
5
5
  import { Action } from '../Models/Action';
6
- export interface RxConfig<T, S extends Cases<T>> extends SliceConfig<T, S> {
7
- debug?: boolean;
8
- storeValue?: boolean;
6
+ export interface EffectsAndSources {
9
7
  effects?: Effect<unknown, unknown>[];
10
8
  sources?: Observable<Action<unknown>>[] | {
11
9
  [key: string]: Observable<unknown>;
12
10
  };
13
11
  }
12
+ export interface RxConfig<T, S extends Cases<T>> extends SliceConfig<T, S>, EffectsAndSources {
13
+ debug?: boolean;
14
+ storeValue?: boolean;
15
+ }
14
16
  export declare const RxBuilder: <T, S extends Cases<T>>({ effects, sources, debug, storeValue, ...sliceConfig }: RxConfig<T, S>) => Reactable<T, { [K in keyof S]: (payload?: unknown) => void; }>;
@@ -1 +1 @@
1
- export { RxBuilder } from './RxBuilder';
1
+ export { RxBuilder, EffectsAndSources } from './RxBuilder';
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "peerDependencies": {
17
17
  "rxjs": "^6.0.0 || ^7.0.0"
18
18
  },
19
- "version": "0.4.1-alpha.0"
19
+ "version": "0.4.1-alpha.1"
20
20
  }