Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

build: upgrade to typescript 3.2.2 #1199

Merged
merged 1 commit into from
Mar 12, 2019
Merged

Conversation

JiaLiPassion
Copy link
Collaborator

No description provided.

lib/rxjs/rxjs.ts Outdated
@@ -145,26 +145,28 @@ import {Observable, Subscriber, Subscription} from 'rxjs';
Subscriber.prototype.next = function() {
const currentZone = Zone.current;
const subscriptionZone = this._zone;
const args: [any?] = Array.prototype.slice.call(arguments) as [any?];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like extra work which we have to do. Why is the slice needed? Can't we just cast it somehow to make TS happy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, without making a new slice, just cast arguments to any.

lib/rxjs/rxjs.ts Outdated
}
};

Subscriber.prototype.error = function() {
const currentZone = Zone.current;
const subscriptionZone = this._zone;
const args: [any?] = Array.prototype.slice.call(arguments) as [any?];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

@mhevery mhevery merged commit fcdd559 into angular:master Mar 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants