@equinor/fusion-observable
Advanced tools
Comparing version 8.0.1 to 8.0.2
import type { OperatorFunction } from 'rxjs'; | ||
import { Action, ActionType, ExtractAction } from '../types'; | ||
export declare const filterAction: <TAction extends Action<string>, TType extends string = ActionType<TAction>>(...types: TType[]) => OperatorFunction<TAction, Extract<TAction, Action<TType>>>; | ||
export declare const filterAction: <TAction extends Action, TType extends string = ActionType<TAction>>(...types: TType[]) => OperatorFunction<TAction, ExtractAction<TAction, TType>>; | ||
export default filterAction; |
import { OperatorFunction } from 'rxjs'; | ||
import { Action, ActionType, ExtractAction } from '../types'; | ||
export declare const mapAction: <TAction extends Action<string>, TType extends ActionType<TAction>, TResult>(type: TType, fn: (value: Extract<TAction, Action<TType>>) => TResult) => OperatorFunction<Extract<TAction, Action<TType>>, TResult>; | ||
export declare const mapAction: <TAction extends Action, TType extends ActionType<TAction>, TResult>(type: TType, fn: (value: ExtractAction<TAction, TType>) => TResult) => OperatorFunction<ExtractAction<TAction, TType>, TResult>; |
import { OperatorFunction, ObservableInput } from 'rxjs'; | ||
import { Action, ActionType, ExtractAction } from '../types'; | ||
export declare const switchMapAction: <TAction extends Action<string>, TType extends ActionType<TAction>, TResult>(type: TType, fn: (value: Extract<TAction, Action<TType>>) => ObservableInput<TResult>) => OperatorFunction<TAction, TResult>; | ||
export declare const switchMapAction: <TAction extends Action, TType extends ActionType<TAction>, TResult>(type: TType, fn: (value: ExtractAction<TAction, TType>) => ObservableInput<TResult>) => OperatorFunction<TAction, TResult>; | ||
export default switchMapAction; |
import { FlowSubject } from '../FlowSubject'; | ||
import type { Action, Reducer } from '../types'; | ||
export declare const useObservable: <S, A extends Action<string> = Action<string>>(reducer: Reducer<S, A>, initial: S) => FlowSubject<S, A>; | ||
export declare const useObservable: <S, A extends Action = Action>(reducer: Reducer<S, A>, initial: S) => FlowSubject<S, A>; |
@@ -9,3 +9,3 @@ import { FlowSubject } from '../FlowSubject'; | ||
} | ||
export declare const useObservableEffect: <S, A extends Action<string> = Action<string>, TType extends ActionType<A> = ActionType<A>>(subject: FlowSubject<S, A>, effectOrType: TType | Effect<A, S>, effect?: Effect<Extract<A, Action<TType>>, S> | undefined) => void; | ||
export declare const useObservableEffect: <S, A extends Action = Action, TType extends ActionType<A> = ActionType<A>>(subject: FlowSubject<S, A>, effectOrType: TType | Effect<A, S>, effect?: Effect<ExtractAction<A, TType>, S> | undefined) => void; | ||
export default useObservableEffect; |
import { FlowSubject } from '../FlowSubject'; | ||
import { Action, Epic } from '../types'; | ||
export declare const useObservableEpic: <S, A extends Action<string> = Action<string>>(subject: FlowSubject<S, A>, epic: Epic<A, S>) => void; | ||
export declare const useObservableEpic: <S, A extends Action = Action>(subject: FlowSubject<S, A>, epic: Epic<A, S>) => void; | ||
export default useObservableEpic; |
{ | ||
"name": "@equinor/fusion-observable", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "WIP", | ||
@@ -61,3 +61,3 @@ "keywords": [ | ||
"react": "^17.0.2", | ||
"typescript": "^4.9.3" | ||
"typescript": "^5.0.4" | ||
}, | ||
@@ -72,4 +72,3 @@ "peerDependencies": { | ||
} | ||
}, | ||
"gitHead": "4bb2b57a6b10b1805f3c1e428af237da669b1c26" | ||
} | ||
} |
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
144946
90