UNPKG

@ngxs/store

Version:
12 lines (11 loc) 643 B
import { StateOperator } from '@ngxs/store'; import { RepairType } from './utils'; import { Predicate } from './internals'; /** * @param condition - Condition can be a plain boolean value or a function, * that returns boolean, also this function can take a value as an argument * to which this state operator applies * @param trueOperatorOrValue - Any value or a state operator * @param elseOperatorOrValue - Any value or a state operator */ export declare function iif<T>(condition: Predicate<T> | boolean, trueOperatorOrValue: StateOperator<T> | T, elseOperatorOrValue?: StateOperator<T> | T): StateOperator<RepairType<T>>;