@equinor/fusion-observable
Advanced tools
Comparing version 8.2.0 to 8.3.0
@@ -41,5 +41,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { | ||
addEffect(actionTypeOrFn, fn) { | ||
const action$ = typeof actionTypeOrFn === 'string' | ||
? this.action$.pipe(filterAction(actionTypeOrFn)) | ||
: this.action$; | ||
const action$ = typeof actionTypeOrFn === 'function' | ||
? this.action$ | ||
: Array.isArray(actionTypeOrFn) | ||
? this.action$.pipe(filterAction(...actionTypeOrFn)) | ||
: this.action$.pipe(filterAction(actionTypeOrFn)); | ||
const mapper = (fn ? fn : actionTypeOrFn); | ||
@@ -46,0 +48,0 @@ return action$ |
@@ -1,2 +0,2 @@ | ||
export const version = '8.2.0'; | ||
export const version = '8.3.0'; | ||
//# sourceMappingURL=version.js.map |
@@ -8,11 +8,11 @@ import { Reducer } from 'react'; | ||
#private; | ||
reset: VoidFunction; | ||
get action$(): Observable<A>; | ||
get value(): S; | ||
get closed(): boolean; | ||
constructor(reducer: ReducerWithInitialState<S, A>); | ||
constructor(reducer: Reducer<S, A>, initialState: S); | ||
constructor(reducer: ReducerWithInitialState<S, A> | Reducer<S, A>, initialState?: S); | ||
reset: VoidFunction; | ||
next(action: A): void; | ||
addEffect(fn: Effect<A, S>): Subscription; | ||
addEffect<TType extends ActionType<A>>(actionType: TType, cb: Effect<ExtractAction<A, TType>, S>): Subscription; | ||
addEffect<TType extends ActionType<A>>(actionType: TType, cb: Effect<ExtractAction<A, NoInfer<TType>>, S>): Subscription; | ||
addEffect<TType extends ActionType<A>>(actionType: Array<TType>, cb: Effect<ExtractAction<A, NoInfer<TType>>, S>): Subscription; | ||
addEpic(fn: Flow<A, S>): Subscription; | ||
@@ -19,0 +19,0 @@ addFlow(fn: Flow<A, S>): Subscription; |
@@ -1,1 +0,1 @@ | ||
export declare const version = "8.2.0"; | ||
export declare const version = "8.3.0"; |
{ | ||
"name": "@equinor/fusion-observable", | ||
"version": "8.2.0", | ||
"version": "8.3.0", | ||
"description": "WIP", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
"@types/uuid": "^9.0.8", | ||
"happy-dom": "^13.3.8", | ||
"happy-dom": "^14.7.1", | ||
"react": "^18.2.0", | ||
@@ -69,0 +69,0 @@ "typescript": "^5.4.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151160
761