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

chore(types): add function types to element and locators #3279

Merged
merged 1 commit into from
Jun 18, 2016

Conversation

cnishina
Copy link
Contributor

  • add 'gulp types' to output index.d.ts
  • some clean up for functions to use fat arrow
  • clang clean up

contents += ' export = protractor\n';
contents += '}\n';

// remove files with d.ts
Copy link
Member

Choose a reason for hiding this comment

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

Why this step? Do they interfere if left in?

Copy link
Contributor Author

@cnishina cnishina Jun 18, 2016

Choose a reason for hiding this comment

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

I thought this would be cleaner to have one d.ts file instead of many when we publish to npm

Copy link
Member

Choose a reason for hiding this comment

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

ok, sgtm.

@juliemr
Copy link
Member

juliemr commented Jun 18, 2016

Main concern is the fat-arrowing of the module that shouldn't be ES6ey. Other stuff looks reasonable.

@juliemr juliemr removed their assignment Jun 18, 2016
@cnishina cnishina force-pushed the pr_typings_element2 branch 2 times, most recently from f8fb089 to 110992e Compare June 18, 2016 01:12
@@ -65,3 +68,42 @@ gulp.task('pretest', function(done) {
});

gulp.task('default',['prepublish']);

gulp.task('types', ['tsc'], function(done) {
Copy link
Member

Choose a reason for hiding this comment

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

This task should be added to the sequence for 'prepublish' now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding the task to prepublish.

@juliemr
Copy link
Member

juliemr commented Jun 18, 2016

Looks good after Travis finishes (I re-ran it after a sauce connect flake) and one more comment on the gulpfile.

- add 'gulp types' to output index.d.ts
- some clean up for functions to use fat arrow
- clang clean up
@cnishina cnishina force-pushed the pr_typings_element2 branch from 110992e to 5c2c1b3 Compare June 18, 2016 02:16
@cnishina cnishina merged commit e4dccbe into angular:master Jun 18, 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