Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit f7716d3

Browse files
author
Dan Lewi Harkestad
committed
Fixed a problem with the _Accumulator rewrite in grunt.
The result of the rewrite for an accumulator should have been: ((acc: TAcc, value: T) => TAcc) But it was: ((acc: T, value: T) => TAcc)
1 parent 6e8ccf9 commit f7716d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2702,7 +2702,7 @@ module.exports = function (grunt) {
27022702
.replace(/_Selector<(\w*?), (\w*?)>/g, '((value: $1, index: number, observable: Observable<$1>) => $2)')
27032703
.replace(/_Comparer<(\w*?), (\w*?)>/g, '((value1: $1, value2: $1) => $2)')
27042704
.replace(/_Comparer<T \| TOther, boolean>/, '((value1: T | TOther, value2: T | TOther) => boolean)')
2705-
.replace(/_Accumulator<(\w*?), (\w*?)>/g, '((acc: $1, value: $1) => $2)')
2705+
.replace(/_Accumulator<(\w*?), (\w*?)>/g, '((acc: $2, value: $1) => $2)')
27062706
.replace(/special._FlatMapResultSelector<(\w*?), (\w*?), (\w*?)>/g, '((value: $1, selectorValue: $2, index: number, selectorOther: number) => $3)')
27072707
.replace(/ObservableOrPromise\<(\w*?)\>/g, '(IObservable<$1> | Observable<$1> \| Promise<$1>)')
27082708

0 commit comments

Comments
 (0)