Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spelling #6966

Merged
merged 75 commits into from Sep 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
998af0a
spelling: assertions
jsoref May 5, 2022
e7ed27f
spelling: asynchronously
jsoref May 5, 2022
dded835
spelling: binary data
jsoref May 5, 2022
47c1391
spelling: calculate
jsoref May 5, 2022
8fd6593
spelling: change
jsoref May 5, 2022
12ae0b8
spelling: characters
jsoref May 5, 2022
eb46345
spelling: comparator
jsoref May 5, 2022
164e4bf
spelling: compatibility
jsoref May 5, 2022
7664399
spelling: computed
jsoref May 5, 2022
94932c5
spelling: consequently
jsoref May 5, 2022
c239a05
spelling: correctly
jsoref May 5, 2022
2d70e47
spelling: current
jsoref May 5, 2022
3f12c56
spelling: deactivate
jsoref May 5, 2022
81c3d4a
spelling: destination
jsoref May 5, 2022
bd4f2f4
spelling: disambiguator
jsoref May 5, 2022
105e3db
spelling: disconnection
jsoref May 5, 2022
81a9518
spelling: either
jsoref May 5, 2022
1c17abf
spelling: emitted
jsoref May 5, 2022
7cfe6e0
spelling: emitting
jsoref May 5, 2022
26cff40
spelling: empty
jsoref May 5, 2022
2a96e88
spelling: encapsulate
jsoref May 5, 2022
c875254
spelling: every time
jsoref May 5, 2022
9d96086
spelling: explicitly
jsoref May 5, 2022
6bf0720
spelling: fizzbuzz
jsoref May 5, 2022
7a80dd1
spelling: from
jsoref May 5, 2022
f8472ce
spelling: github
jsoref May 5, 2022
0d102ee
spelling: given
jsoref May 5, 2022
dc620be
spelling: guarantees
jsoref May 5, 2022
6839cc0
spelling: guards
jsoref May 5, 2022
26818f7
spelling: higher
jsoref May 5, 2022
3eac6ac
spelling: idea
jsoref May 5, 2022
32e7fdc
spelling: incompatible
jsoref May 5, 2022
49d63ae
spelling: indices
jsoref May 5, 2022
62617e2
spelling: inferred
jsoref May 5, 2022
aed5e6a
spelling: inner
jsoref May 5, 2022
893a4eb
spelling: input
jsoref May 5, 2022
e971f66
spelling: instance
jsoref May 5, 2022
8f6652f
spelling: notifier
jsoref May 5, 2022
a6dba3a
spelling: object
jsoref May 5, 2022
3692ba2
spelling: observable
jsoref May 5, 2022
0c5f0b3
spelling: occurred
jsoref May 5, 2022
3e53e05
spelling: occurrence
jsoref May 5, 2022
344b1ed
spelling: omitted
jsoref May 5, 2022
ada7a9e
spelling: options
jsoref May 5, 2022
284bb0a
spelling: order
jsoref May 5, 2022
180fda8
spelling: overridable
jsoref May 5, 2022
4894758
spelling: preemptively
jsoref May 5, 2022
5bc79e4
spelling: preexisting
jsoref May 5, 2022
abc588c
spelling: projector
jsoref May 5, 2022
d316019
spelling: relevant
jsoref May 5, 2022
d14b47d
spelling: repeated
jsoref May 5, 2022
e6b718e
spelling: sentence
jsoref May 5, 2022
3ba9cd2
spelling: should
jsoref May 5, 2022
32a8240
spelling: skip
jsoref May 5, 2022
104891b
spelling: socket
jsoref May 5, 2022
ddee51c
spelling: source
jsoref May 5, 2022
f8a8532
spelling: stringify
jsoref May 5, 2022
d8319b5
spelling: subresource
jsoref May 5, 2022
40b95cd
spelling: subscribe
jsoref May 5, 2022
e5942ff
spelling: subscriber
jsoref Jul 21, 2022
f0fa301
spelling: subscribes
jsoref May 5, 2022
8052e9e
spelling: subscription
jsoref May 5, 2022
455a704
spelling: synchronously
jsoref May 5, 2022
ea94833
spelling: targeting
jsoref May 5, 2022
8cb7dab
spelling: template
jsoref May 5, 2022
2f0a949
spelling: temporarily
jsoref May 5, 2022
63eeb73
spelling: that
jsoref May 5, 2022
9bc734d
spelling: the
jsoref May 5, 2022
34c7126
spelling: transitioning
jsoref May 5, 2022
82c2760
spelling: undefined
jsoref May 5, 2022
fc82487
spelling: unnamed
jsoref May 5, 2022
dc39573
spelling: verify
jsoref May 5, 2022
66e3a68
spelling: we
jsoref Jul 21, 2022
b822d51
spelling: when
jsoref May 5, 2022
9ecb854
spelling: with
jsoref May 5, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 24 additions & 24 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs_app/README.md
Expand Up @@ -80,7 +80,7 @@ You also want to see those changes displayed properly in the doc viewer
with a quick, edit/view cycle time.

For this purpose, use the `npm run docs-watch` task, which watches for changes to source files and only
re-processes the the files necessary to generate the docs that are related to the file that has changed.
re-processes the files necessary to generate the docs that are related to the file that has changed.
jsoref marked this conversation as resolved.
Show resolved Hide resolved
Since this task takes shortcuts, it is much faster (often less than 1 second) but it won't produce full
fidelity content. For example, links to other docs and code examples may not render correctly. This is
most particularly noticed in links to other docs and in the embedded examples, which may not always render
Expand Down
2 changes: 1 addition & 1 deletion docs_app/content/6-to-7-change-summary.md
Expand Up @@ -116,7 +116,7 @@ This document contains a detailed list of changes between RxJS 6.x and RxJS 7.x,

#### Subscribable

- `subscribe` will accept `Partial<Observer<T>>` now. All overloads with functions as arguments have been removed. This is because `Subscribable` is intended to map to the basic observable contract from the TC39 proposal and the the return type of a call to `[Symbol.observable]()`.
- `subscribe` will accept `Partial<Observer<T>>` now. All overloads with functions as arguments have been removed. This is because `Subscribable` is intended to map to the basic observable contract from the TC39 proposal and the return type of a call to `[Symbol.observable]()`.

#### SubscribableOrPromise

Expand Down
2 changes: 1 addition & 1 deletion docs_app/content/deprecations/breaking-changes.md
Expand Up @@ -24,7 +24,7 @@

- The static `sortActions` method on `VirtualTimeScheduler` is no longer publicly exposed by our TS types.

- `Notification.createNext(undefined)` will no longer return the exact same reference everytime.
- `Notification.createNext(undefined)` will no longer return the exact same reference every time.

- Type signatures tightened up around `Notification` and `dematerialize`, may uncover issues with invalid types passed to those operators.

Expand Down
4 changes: 2 additions & 2 deletions docs_app/content/guide/installation.md
Expand Up @@ -9,8 +9,8 @@ npm install rxjs
```

By default, RxJS 7.x will provide different variants of the code based on the consumer:
* When RxJS 7.x is used on Node.js regardless of whether it is consumed via `require` or `import`, CommonJS code targetting ES5 will be provided for execution.
* When RxJS 7.4+ is used via a bundler targeting a browser (or other non-Node.js platform) ES module code targetting ES5 will be provided by default with the option to use ES2015 code.
* When RxJS 7.x is used on Node.js regardless of whether it is consumed via `require` or `import`, CommonJS code targeting ES5 will be provided for execution.
* When RxJS 7.4+ is used via a bundler targeting a browser (or other non-Node.js platform) ES module code targeting ES5 will be provided by default with the option to use ES2015 code.
7.x versions prior to 7.4.0 will only provide ES5 code.

If the target browsers for a project support ES2015+ or the bundle process supports down-leveling to ES5 then the bundler can optionally be configured to allow the ES2015 RxJS code to be used instead.
Expand Down
2 changes: 1 addition & 1 deletion docs_app/content/guide/operators.md
Expand Up @@ -282,7 +282,7 @@ function discardOddDoubleEven() {

### Creating new operators from scratch

It is more complicated, but if you have to write an operator that cannot be made from a combination of existing operators (a rare occurrance), you can write an operator from scratch using the Observable constructor, like this:
It is more complicated, but if you have to write an operator that cannot be made from a combination of existing operators (a rare occurrence), you can write an operator from scratch using the Observable constructor, like this:

```ts
import { Observable, of } from 'rxjs';
Expand Down
4 changes: 2 additions & 2 deletions docs_app/src/app/app.component.spec.ts
Expand Up @@ -1011,7 +1011,7 @@ describe('AppComponent', () => {
jasmine.clock().tick(1); // triggers the HTTP response for the document
const toolbar = fixture.debugElement.query(By.css('.app-toolbar'));

// Initially, `isTransitoning` is true.
// Initially, `isTransitioning` is true.
expect(component.isTransitioning).toBe(true);
expect(toolbar.classes['transitioning']).toBe(true);

Expand All @@ -1020,7 +1020,7 @@ describe('AppComponent', () => {
expect(component.isTransitioning).toBe(false);
expect(toolbar.classes['transitioning']).toBeFalsy();

// While a document is being rendered, `isTransitoning` is set to true.
// While a document is being rendered, `isTransitioning` is set to true.
triggerDocViewerEvent('docReady');
fixture.detectChanges();
expect(component.isTransitioning).toBe(true);
Expand Down
4 changes: 2 additions & 2 deletions docs_app/src/app/app.component.ts
Expand Up @@ -135,7 +135,7 @@ export class AppComponent implements OnInit {
*
* * `page-...`: computed from the current document id (e.g. events, guide-security, tutorial-toh-pt2)
* * `folder-...`: computed from the top level folder for an id (e.g. guide, tutorial, etc)
* * `view-...`: computef from the navigation view (e.g. SideNav, TopBar, etc)
* * `view-...`: computed from the navigation view (e.g. SideNav, TopBar, etc)
*/
@HostBinding('class')
hostClasses = '';
Expand Down Expand Up @@ -234,7 +234,7 @@ export class AppComponent implements OnInit {
).subscribe(([versionInfo, versions]) => {
this.docVersions = [...versions];

// Find the current version - eithers title matches the current deployment mode
// Find the current version - either title matches the current deployment mode
jakovljevic-mladen marked this conversation as resolved.
Show resolved Hide resolved
// or its title matches the major version of the current version info
this.currentDocVersion = this.docVersions.find(
(version) => version.title === this.deployment.mode || version.title === `v${versionInfo.major}`
Expand Down
Expand Up @@ -32,7 +32,7 @@ describe('ApiListComponent', () => {
* Expectation Utility: Assert that filteredSections has the expected result for this test
* @param itemTest - return true if the item passes the match test
*
* Subscibes to `filteredSections` and performs expectation within subscription callback.
* Subscribes to `filteredSections` and performs expectation within subscription callback.
*/
function expectFilteredResult(label: string, itemTest: (item: ApiItem) => boolean) {
component.filteredSections.subscribe(filtered => {
Expand Down Expand Up @@ -96,7 +96,7 @@ describe('ApiListComponent', () => {
});

it('should have no sections and no items visible when there is no match', () => {
component.setQuery('fizbuzz');
component.setQuery('fizzbuzz');
jakovljevic-mladen marked this conversation as resolved.
Show resolved Hide resolved
component.filteredSections.subscribe(filtered => {
expect(filtered.some(section => !!section.items)).toBeFalsy();
});
Expand Down
Expand Up @@ -24,7 +24,7 @@ import { CONTENT_URL_PREFIX } from 'app/documents/document.service';
<a *ngIf="person.github" mat-button class="icon"
href="{{person.github}}" target="_blank" (click)="$event.stopPropagation()">
<span class="fa fa-github fa-2x" aria-hidden="true"></span>
<span class="sr-only">Github {{person.name}}</span>
<span class="sr-only">GitHub {{person.name}}</span>
jakovljevic-mladen marked this conversation as resolved.
Show resolved Hide resolved
</a>
<a *ngIf="person.website" mat-button class="icon"
href="{{person.website}}" target="_blank" (click)="$event.stopPropagation()">
Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/app/custom-elements/elements-loader.spec.ts
Expand Up @@ -194,7 +194,7 @@ describe('ElementsLoader', () => {
expect(definedSpy).not.toHaveBeenCalled();
}));

it('should fail if defining the the custom element fails', fakeAsync(() => {
it('should fail if defining the custom element fails', fakeAsync(() => {
let state = 'pending';
elementsLoader.loadCustomElement('element-b-selector').catch(e => state = `rejected: ${e}`);
flushMicrotasks();
Expand Down
Expand Up @@ -21,14 +21,14 @@ import { OperatorDecisionTreeService } from './operator-decision-tree.service';
</ng-container>
<div>
<ng-container *ngFor="let option of options$ | async">
<ng-container *ngIf="option.options; else operatorTempalte">
<ng-container *ngIf="option.options; else operatorTemplate">
<button class="option mat-body-1" (click)="selectOption(option.id)" [@flyIn]>
<mat-card matRipple>
{{ option.label }}
</mat-card>
</button>
</ng-container>
<ng-template #operatorTempalte>
<ng-template #operatorTemplate>
<p *ngIf="option.method" class="mat-body-1">
You want the {{ option.method }} of the {{ option.docType }}
<a href="{{ option.path }}#{{ option.method }}">{{ option.label }}</a
Expand All @@ -48,7 +48,7 @@ import { OperatorDecisionTreeService } from './operator-decision-tree.service';
<p>Oops! There was an issue loading the decision tree.. we're real sorry about that. Please try reloading the page.</p>
<p>
You can also try
<a href="https://github.com/ReactiveX/rxjs/issues/new?template=documentation.md" target="_blank">submitting an issue on Github</a
<a href="https://github.com/ReactiveX/rxjs/issues/new?template=documentation.md" target="_blank">submitting an issue on GitHub</a
>.
</p>
</div>
Expand Down
Expand Up @@ -31,7 +31,7 @@ describe('OperatorDecisionTreeService', () => {
});

describe('currentSentence$', () => {
const initialSetence = 'Start by choosing an option from the list below.';
const initialSentence = 'Start by choosing an option from the list below.';

beforeEach(() => {
dataServiceStub.getDecisionTree$.and.returnValue(
Expand All @@ -44,7 +44,7 @@ describe('OperatorDecisionTreeService', () => {
it('should emit an initial sentence', () => {
spyOn(service, 'selectOption');
expect(service.currentSentence$).toBeObservable(
cold('x', { x: initialSetence })
cold('x', { x: initialSentence })
);
expect(service.selectOption).not.toHaveBeenCalled();
});
Expand Down Expand Up @@ -83,7 +83,7 @@ describe('OperatorDecisionTreeService', () => {
service.selectOption(treeNodeStubWithOptionsA.id);
service.startOver();
expect(service.currentSentence$).toBeObservable(
cold('x', { x: initialSetence })
cold('x', { x: initialSentence })
);
});
});
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('OperatorDecisionTreeService', () => {

describe('hasError$', () => {
describe('when the tree has no error', () => {
it('shoud not emit', () => {
it('should not emit', () => {
dataServiceStub.getDecisionTree$.and.returnValue(
cold('x', { x: treeStub })
);
Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/app/documents/document.service.spec.ts
Expand Up @@ -82,7 +82,7 @@ describe('DocumentService', () => {
// Subsequent request for not-found document.
logger.output.error = [];
httpMock.expectOne(CONTENT_URL_PREFIX + 'file-not-found.json').flush(notFoundDoc);
expect(logger.output.error).toEqual([]); // does not report repeate errors
expect(logger.output.error).toEqual([]); // does not report repeated errors
jakovljevic-mladen marked this conversation as resolved.
Show resolved Hide resolved
expect(currentDocument).toEqual(notFoundDoc);
});

Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/app/navigation/navigation.service.spec.ts
Expand Up @@ -65,7 +65,7 @@ describe('NavigationService', () => {
expect(views2).toBe(views1);
expect(views3).toBe(views1);

// Verfy that subsequent subscriptions did not trigger another request.
// Verify that subsequent subscriptions did not trigger another request.
httpMock.expectNone({});
});

Expand Down
4 changes: 2 additions & 2 deletions docs_app/src/app/shared/scroll-spy.service.ts
Expand Up @@ -37,7 +37,7 @@ export class ScrollSpiedElement implements ScrollItem {

/*
* @method
* Caclulate the `top` value, i.e. the value of the `scrollTop` property at which this element
* Calculate the `top` value, i.e. the value of the `scrollTop` property at which this element
* becomes active. The current implementation assumes that window is the scroll-container.
*
* @param {number} scrollTop - How much is window currently scrolled (vertically).
Expand Down Expand Up @@ -72,7 +72,7 @@ export class ScrollSpiedElementGroup {

/*
* @method
* Caclulate the `top` value of each ScrollSpiedElement of this group (based on te current
* Calculate the `top` value of each ScrollSpiedElement of this group (based on te current
* `scrollTop` and `topOffset` values), so that the active element can be later determined just by
* comparing its `top` property with the then current `scrollTop`.
*
Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/app/shared/select/select.component.spec.ts
Expand Up @@ -73,7 +73,7 @@ describe('SelectComponent', () => {
beforeEach(() => {
host.options = options;
host.showSymbol = true;
getButton().click(); // ensure the the options are visible
getButton().click(); // ensure the options are visible
fixture.detectChanges();
});

Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/app/shared/toc.service.spec.ts
Expand Up @@ -79,7 +79,7 @@ describe('TocService', () => {
expect(indices).toEqual([null, 42, 0, null, 7]);
});

it('should reset athe active index (and unspy) when calling `reset()`', () => {
it('should reset the active index (and unspy) when calling `reset()`', () => {
jakovljevic-mladen marked this conversation as resolved.
Show resolved Hide resolved
const indices: (number | null)[] = [];

tocService.activeItemIndex.subscribe(i => indices.push(i));
Expand Down
2 changes: 1 addition & 1 deletion docs_app/src/index.html
Expand Up @@ -31,7 +31,7 @@
<meta name="apple-mobile-web-app-status-bar-style" content="translucent">

<script>
// Dynamically, pre-emptively, add `noindex`, which will be removed when the doc is ready and valid
// Dynamically, preemptively, add `noindex`, which will be removed when the doc is ready and valid
var tag = document.createElement('meta'); tag.name = 'robots'; tag.content = 'noindex';
document.head.appendChild(tag);
</script>
Expand Down
Expand Up @@ -20,7 +20,7 @@ describe('decisionTreeReducer', () => {
});

describe('that have options', () => {
it('should have an optons property that is an array of strings', () => {
it('should have an options property that is an array of strings', () => {
for (const key in tree) {
if (
tree.hasOwnProperty(key) &&
Expand Down
Expand Up @@ -6,7 +6,7 @@ const tree = addUniqueId(mockRawTreeNodes);
const initialSequence = extractInitialSequence(tree);

describe('extractInitialSequence', () => {
describe('when givien a tree that has passed through addUniqueId', () => {
describe('when given a tree that has passed through addUniqueId', () => {
it('will return an object that has an id of initial', () => {
expect(initialSequence).toMatchObject({
id: 'initial',
Expand Down
Expand Up @@ -2,7 +2,7 @@ import { ApiListNode, FlattenedApiList } from './interfaces';
import { isStable } from './helpers';

/**
* Flattens API List from the docs generation into a map with relavant properties.
* Flattens API List from the docs generation into a map with relevant properties.
* Makes navigation easier.
*
* @export
Expand Down
2 changes: 1 addition & 1 deletion docs_app/tools/decision-tree-generator/src/tree.yml
Expand Up @@ -96,7 +96,7 @@
- label: where time windows are determined by a time duration
children:
- label: auditTime
- label: by emitting the last value as soon as enough silence has occured
- label: by emitting the last value as soon as enough silence has occurred
children:
- label: where the silence duration threshold is determined by another Observable
children:
Expand Down
2 changes: 1 addition & 1 deletion docs_app/tools/transforms/angular-api-package/index.js
Expand Up @@ -57,7 +57,7 @@ module.exports = new Package('angular-api', [basePackage, typeScriptPackage])
// Where do we get the source files?
.config(function(readTypeScriptModules, readFilesProcessor, collectExamples, tsParser) {

// Tell TypeScript how to load modules that start with with `@angular`
// Tell TypeScript how to load modules that start with `@angular`
tsParser.options.paths = { '@angular/*': [API_SOURCE_PATH + '/*'] };
tsParser.options.baseUrl = '.';

Expand Down
Expand Up @@ -8,7 +8,7 @@ describe('toId filter', function() {
it('should be called "toId"', function() { expect(filter.name).toEqual('toId'); });

it('should convert a string to make it appropriate for use as an HTML id', function() {
expect(filter.process('This is a big string with €bad#characaters¢\nAnd even NewLines'))
.toEqual('This-is-a-big-string-with--bad-characaters--And-even-NewLines');
expect(filter.process('This is a big string with €bad#characters¢\nAnd even NewLines'))
.toEqual('This-is-a-big-string-with--bad-characters--And-even-NewLines');
});
});
Expand Up @@ -23,8 +23,8 @@ module.exports = function parseArgString() {
//["] Close match if "
var rx = /[^\s'"]+|[']([^']*?)[']|["]([^"]*?)["]/gi;
var value = str;
var unnammedArgs = [];
var args = {_: unnammedArgs};
var unnamedArgs = [];
var args = {_: unnamedArgs};
var match, key;
do {
// Each call to exec returns the next regex match as an array
Expand All @@ -47,7 +47,7 @@ module.exports = function parseArgString() {
key = key.substr(1);
}
} else {
unnammedArgs.push(arg);
unnamedArgs.push(arg);
key = null;
}
}
Expand Down
Expand Up @@ -15,7 +15,7 @@ module.exports = function getDocFromAlias(aliasMap) {
function getDocFromAlias(alias, originatingDoc) {
return getDocFromAlias.disambiguators.reduce(
// Run the disambiguators while there is more than 1 doc found
(docs, disambiguater) => docs.length > 1 ? disambiguater(alias, originatingDoc, docs) : docs,
(docs, disambiguator) => docs.length > 1 ? disambiguator(alias, originatingDoc, docs) : docs,
// Start with the docs that match the alias
aliasMap.getDocs(alias)
);
Expand Down
Expand Up @@ -49,7 +49,7 @@ describe('target inline-tag-def', function() {
});

describe('deactivate', function() {
it('should deactive an already allowed target', function() {
it('should deactivate an already allowed target', function() {
te.addAllowed('a', true);
te.addAllowed('b', false);
te.addAllowed('c');
Expand Down
4 changes: 2 additions & 2 deletions integration/import/fixtures/commonjs/index.js
Expand Up @@ -6,11 +6,11 @@ const operators = require('rxjs/operators');
const rxSnapshot = require('./rx.json');
const operatorsSnapshot = require('./operators.json');

const coldObservalbe = require('rxjs/internal/testing/ColdObservable');
const coldObservable = require('rxjs/internal/testing/ColdObservable');

assert.ok(rx, 'main export should exists');
assert.ok(operators, 'operator export should exists');
assert.ok(coldObservalbe, 'internal can be imported');
assert.ok(coldObservable, 'internal can be imported');

assert.deepStrictEqual(Object.keys(rx).sort(), rxSnapshot.sort(), 'main export should include exports');
assert.deepStrictEqual(Object.keys(operators).sort(), operatorsSnapshot.sort(), 'operator export should include exports');
4 changes: 2 additions & 2 deletions spec-dtslint/operators/concatMap-spec.ts
Expand Up @@ -18,11 +18,11 @@ it('should infer correctly by using the resultSelector second parameter', () =>
});

it('should support a resultSelector that takes an inner index', () => {
const o = of(1, 2, 3).pipe(concatMap(p => of(Boolean(p)), (a, b, innnerIndex) => a)); // $ExpectType Observable<number>
const o = of(1, 2, 3).pipe(concatMap(p => of(Boolean(p)), (a, b, innerIndex) => a)); // $ExpectType Observable<number>
});

it('should support a resultSelector that takes an inner and outer index', () => {
const o = of(1, 2, 3).pipe(concatMap(p => of(Boolean(p)), (a, b, innnerIndex, outerIndex) => a)); // $ExpectType Observable<number>
const o = of(1, 2, 3).pipe(concatMap(p => of(Boolean(p)), (a, b, innerIndex, outerIndex) => a)); // $ExpectType Observable<number>
});

it('should support an undefined resultSelector', () => {
Expand Down
4 changes: 2 additions & 2 deletions spec-dtslint/operators/concatMapTo-spec.ts
Expand Up @@ -26,11 +26,11 @@ it('should infer correctly by using the resultSelector second parameter', () =>
});

it('should support a resultSelector that takes an inner index', () => {
const o = of(1, 2, 3).pipe(concatMapTo(of('foo'), (a, b, innnerIndex) => a)); // $ExpectType Observable<number>
const o = of(1, 2, 3).pipe(concatMapTo(of('foo'), (a, b, innerIndex) => a)); // $ExpectType Observable<number>
});

it('should support a resultSelector that takes an inner and outer index', () => {
const o = of(1, 2, 3).pipe(concatMapTo(of('foo'), (a, b, innnerIndex, outerIndex) => a)); // $ExpectType Observable<number>
const o = of(1, 2, 3).pipe(concatMapTo(of('foo'), (a, b, innerIndex, outerIndex) => a)); // $ExpectType Observable<number>
});

it('should support an undefined resultSelector', () => {
Expand Down