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

chore(typescript): migrate element file to typescript #3143

Merged
merged 1 commit into from
Apr 21, 2016

Conversation

juliemr
Copy link
Member

@juliemr juliemr commented Apr 21, 2016

No description provided.

// wrap each
// one explicity with its own documentation?
WEB_ELEMENT_FUNCTIONS.forEach((fnName: string) => {
(<any>this)[fnName] = function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

use () => instead of function()

Copy link
Member Author

Choose a reason for hiding this comment

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

When I tried to do that here, I got errors below because you can't use arguments in a fat-arrow function.

Copy link
Contributor

Choose a reason for hiding this comment

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

You could do something like this: (...args: any[]) => {

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@cnishina
Copy link
Contributor

#1203

@juliemr
Copy link
Member Author

juliemr commented Apr 21, 2016

Cleanup done! npm test passing. Waiting for Travis - @cnishina did you want to take another look?

@juliemr juliemr merged commit 5504e10 into angular:master Apr 21, 2016
@cnishina cnishina mentioned this pull request Jun 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants