(fn: AccumulationFn)
| 36 | * @param fn |
| 37 | */ |
| 38 | export function withAccumulatorFn(fn: AccumulationFn): RxStateConfigFn { |
| 39 | return { |
| 40 | kind: 'Accumulator', |
| 41 | providers: [{ provide: RX_ACCUMULATOR_FN, useValue: fn }], |
| 42 | }; |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Injection token for the default state scheduler |