<commit_before>import Observable from '../Observable';
import { FlatMapToOperator } from './flatMapTo-support';

export default function concatMapTo<T, R>(observable: Observable<any>,
                                          projectResult?: (x: T, y: any, ix: number, iy: number) => R) : Observable<R> {
  return this.lift(new FlatMapToOperator(observable, projectResult, 1));
}
<commit_msg>refactor(concatMapTo): update type signature<commit_after>import Observable from '../Observable';
import { FlatMapToOperator } from './flatMapTo-support';

export default function concatMapTo<T, R, R2>(observable: Observable<R>,
                                          projectResult?: (innerValue: R, outerValue: T, innerIndex: number, outerIndex: number) => R2) : Observable<R2> {
  return this.lift(new FlatMapToOperator(observable, projectResult, 1));
}
{'fraction_non_alphanumeric': 0.12705882352941175, 'fraction_numerical': 0.0058823529411764705, 'mean_word_length': 3.727777777777778, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5498143', 'n_tokens_mistral': 240, 'n_tokens_neox': 230, 'n_words': 64}