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
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:ts-3.2.2
Mar 12, 2019
Merged

build: upgrade to typescript 3.2.2#1199
mhevery merged 1 commit intoangular:masterfrom
JiaLiPassion:ts-3.2.2

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread lib/rxjs/rxjs.ts Outdated
Subscriber.prototype.next = function() {
const currentZone = Zone.current;
const subscriptionZone = this._zone;
const args: [any?] = Array.prototype.slice.call(arguments) as [any?];
Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread 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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same...

Copy link
Copy Markdown
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