Skip to content

feat(es2018): add definitions for new array methods (flatten, flatMap) #20410

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

Closed
benbraou opened this issue Dec 3, 2017 · 3 comments
Closed
Labels
Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Good First Issue Well scoped, documented and has the green light Help Wanted You can do this Suggestion An idea for TypeScript

Comments

@benbraou
Copy link
Contributor

benbraou commented Dec 3, 2017

Array.prototype.flatMap and Array.prototype.flatten (https://github.com/tc39/proposal-flatMap) are now at stage 3

This issue is created to handle the addition of the corresponding definitions.

This has been suggested by @mhegazy #20385 (comment)

@benbraou
Copy link
Contributor Author

benbraou commented Dec 3, 2017

I will provide a PR for this

benbraou added a commit to benbraou/TypeScript that referenced this issue Dec 4, 2017
@mhegazy mhegazy added Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Suggestion An idea for TypeScript Help Wanted You can do this Good First Issue Well scoped, documented and has the green light labels Dec 4, 2017
@mhegazy mhegazy added this to the Community milestone Dec 4, 2017
benbraou added a commit to benbraou/TypeScript that referenced this issue Dec 5, 2017
@benbraou
Copy link
Contributor Author

benbraou commented Dec 5, 2017

Array.prototype.flatten and Array.prototype.flatMap will be marked for the moment as esnext and not es2018.
After TC39 January meeting, it will be clearer whether this will make it to es2018

benbraou added a commit to benbraou/TypeScript that referenced this issue Dec 6, 2017
benbraou added a commit to benbraou/TypeScript that referenced this issue Dec 16, 2017
@mhegazy mhegazy modified the milestones: Community, TypeScript 2.7 Jan 8, 2018
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Jan 8, 2018
mhegazy pushed a commit that referenced this issue Jan 8, 2018
…rototype.flatMap (#20431)

* bug(esnext): add definitions for flatten and flatMap

Fixes #20410

* bug(esnext) add overloads for flatten
@mhegazy
Copy link
Contributor

mhegazy commented Jan 8, 2018

thanks @benbraou!

@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Fixed A PR has been merged for this issue Good First Issue Well scoped, documented and has the green light Help Wanted You can do this Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants