Dirk Luijk
60dd512a83
fix(60223): add Promise.try() to ESNext lib ( #60232 )
2024-11-05 17:14:02 -08:00
9d98874739
Introduce ES2024 target and fix some types ( #58573 )
...
Co-authored-by: indrajitbnikam <indrajitbnikam@gmail.com >
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com >
2024-09-27 14:58:17 -04:00
Kevin Gibbons and Ron Buckton
307ff6c397
add types for iterator helpers proposal ( #58222 )
...
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com >
2024-07-19 16:46:03 -04:00
Andreu Botella and Nathan Shively-Sanders
3480321b38
Add types for String#isWellFormed and String#toWellFormed ( #58010 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2024-04-19 13:52:23 -07:00
Isabel Duan and Daniel Rosenwasser
3282ff28e6
add Array.fromAsync to esnext ( #57748 )
...
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com >
2024-03-19 10:43:02 -07:00
Joshua Chen
a9460c8c93
Add lib declaration for RegExp#unicodeSets ( #57111 )
2024-03-18 15:02:07 -07:00
René
877d9d316d
Intl.NumberFormat: Add latest options, fix previous library discrepancies ( #56902 )
2024-03-01 09:40:44 -08:00
fbf908bd58
Add types for Object.groupBy() and Map.groupBy() ( #56805 )
...
Co-authored-by: Nick McCurdy <nick@nickmccurdy.com >
Co-authored-by: Karl Horky <karl.horky@gmail.com >
Co-authored-by: Niklas Mollenhauer <nikeee@outlook.com >
2024-01-11 11:17:54 -08:00
Kagami Sascha Rosylight
8a3fe5760f
Add asynciterable libs ( #56723 )
2024-01-02 11:07:57 -08:00
Linus Groh
aef29e400e
Add types for Promise.withResolvers() ( #56593 )
2023-11-29 08:55:55 -08:00
kazuya kawaguchi and Nathan Shively-Sanders
09fc67bd48
fix: add Intl.getCanonicalLocales type definition ( #56079 )
...
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2023-11-03 10:56:44 -07:00
Oleksandr T
bc91920cc6
feat(53461): Implement decorator metadata proposal ( #54657 )
2023-06-23 10:55:22 -04:00
Ron Buckton
f9cf8216c6
Support using and await using declarations ( #54505 )
2023-06-22 17:02:56 -04:00
leoelm
eeed72171f
Type definitions for 'Symbols as WeakMap keys' ( #76 ) ( #54195 )
...
Signed-off-by: Leo Elmecker <lelmeckerpla@bloomberg.net >
2023-06-09 14:20:26 -04:00
João Nuno Mota
0d262616f3
Add extra Date.UTC signature to reflect ES2017 changes ( #54125 )
2023-05-22 16:23:08 -07:00
Ron Buckton
5b18979697
Implement the Stage 3 Decorators Proposal ( #50820 )
2023-01-19 17:54:12 -05:00
Mykola Basov
cb4c7689e6
Add Array.prototype.findLast() and Array.prototype.findLastIndex() ( #49636 )
...
Signed-off-by: mbasov2 <mbasov2@bloomberg.net >
2023-01-13 15:35:50 -08:00
Ron Buckton
f43cd0acca
Add RegExp indices and hasIndices ( #52085 )
...
* Add RegExp indices
* update --lib message
* newlines
* implement changes
* Fix failing tests
Thanks @xiBread!
2023-01-03 15:20:10 -05:00
Long Ho and long.ho
71d1911503
add unknown to DateTimeFormatTypes ( #50402 )
...
* add unknown to DateTimeFormatTypes
* move unknown to es2019.intl instead
* Accepted baselines.
Co-authored-by: long.ho <long.ho@cloudkitchens.com >
2022-08-26 13:02:44 -07:00
4c5060181f
Fix(49198): Added missing definition for Atomics.waitAsync and es2022 sharedmemory file ( #49204 )
...
* feat(sharedmemory): Added file waitAsync function
* fix: Adjusted promise return type
* Fix(sharedmemory): Addressed PR comments
* Fix: Removed unused @see at sharedmemory
* Feat: Added tests to shared memory
* Fix: fixed ordering in libs.json
* Feat: Added shared memory to line parser
* Update tests es2022SharedMemory.ts as sugested
Co-authored-by: Eyal Halpern Shalev <eyalsh@gmail.com >
* Update es2022SharedMemory.ts
* feat: Accepted baselines
* fix: Adjusted grammar changes in jsdoc
* fix(47821): skip nodes with export modifiers (#47829 )
* Use symbolic GitHub Actions Node.js versions (#49403 )
* update baselines
Co-authored-by: Eyal Halpern Shalev <eyalsh@gmail.com >
Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com >
Co-authored-by: Jack Bates <jack@nottheoilrig.com >
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2022-06-07 08:46:23 -07:00
Kenta Moriuchi
4a0b083c69
Add ES2022 Intl.Segmenter type ( #48800 )
...
* Add `Intl.Segmenter` type
* Update baseline
* Fix useless generics
* Fix indent size
* Fix `ResolvedSegmenterOptions`
2022-05-05 17:09:06 -07:00
jihndai
1abc47b882
Add Intl.Locale parameter type to toLocale[X]String signatures. ( #47811 )
...
* add Intl.Locale param type to locales argument in BigInt, Number, and Date methods
* update baselines
* add test for locales object arguments
* fix indentation
2022-02-28 14:10:18 -08:00
Kagami Sascha Rosylight and Orta
ae582a22ee
Add target: "es2022" ( #46291 )
...
* Add `target: "es2022"`
* Add Object.hasOwn
* formatToParts is es2018
* ref update
* optional parameter
* Revert "optional parameter"
This reverts commit e67d6e5f60 .
* undefined
* error cause
* Lint fix
Co-authored-by: Orta <git@orta.io >
2021-11-04 10:55:11 -07:00
Orta Therox and Nathan Shively-Sanders
07fd7bce64
Intl 2021 Updates ( #45647 )
...
* Import of Intl.Locale from #39664
* Handle updating es2020.intl and add es2021 for new DateTimeFormatOptions options - re: #39664
* Extends DateTimeFormatOptions for new Intl APIs - re: #45420
* Handle migrating Intl.NumberFormat.formatToParts to es2018 (keeping esnext.intl around)
* Adds Intl.DisplayNames to es2020 - re: #44022
* Remove attributes added in es2021 from es2020 - re: #42944
* Add a reference to es2021 in the command line parser
* Adds some docs about the lib files
* Baselines
* Allow undefined in Intl inputs to allow for ergonomic usage of exactOptionalPropertyTypes - see #45652
* Adds some tests covering the APIs
* Apply suggestions from code review
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
* Handle PR feedback
* More review improvements
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2021-09-08 10:43:01 +01:00
Kagami Sascha Rosylight and Nathan Shively-Sanders
f4d0ea6539
Add target: ES2021 ( #41239 )
...
* Support `target: es2020`
* use CRLF
* update symbols
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2021-03-10 13:31:25 -08:00
Nathan Shively-Sanders
fc783a9000
Fix missed tasks to add esnext.weakref ( #40981 )
...
Follow up to #38232 , based on #33844
2020-10-07 11:06:04 -07:00
Orta Therox and Nathan Shively-Sanders
aa2756a5d7
Updates Dom lib with TSJS changes, adding a new library for webworker iterable ( #40500 )
...
* Updates Dom lib with TSJS changes, adding a new library for webworker iterable
Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com >
* Fixes tests
Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com >
2020-09-11 15:36:00 -04:00
Jack Moore
4a3b195772
Add lib es2020.sharedmemory ( #39541 )
2020-09-11 11:34:01 -04:00
Dmitry Makhnev and Dmitry Makhnev
dbaeed5ad8
Add d.ts for Intl.RelativeTimeFormat ( #36084 )
...
* feat(lib/es2020.intl): Add `Intl.RelativeTimeFormat` (part of #29129 );
* fix(lib/es2020.intl): fix for tests and linters `Intl.RelativeTimeFormat` (part of #29129 );
* feat(lib/es2020.intl): Add TSDoc for `Intl.RelativeTimeFormat` by review request https://github.com/microsoft/TypeScript/pull/36084#issuecomment-584769420 ;
* fix(lib/es2020.intl): Fix for tests;
Co-authored-by: Dmitry Makhnev <dmitriy.makhnev@jugru.org >
2020-05-20 11:06:28 -04:00
Wenlu Wang and Nathan Shively-Sanders
20625a964b
add promise.any ( #33844 )
...
* add promise.prototype.any
* add AggregateError
* Update src/lib/esnext.promise.d.ts
Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
* update baseline again
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2020-03-11 08:36:00 -07:00
Nathan Shively-Sanders
0a1af90bb6
add string.prototype.replaceAll ( #33845 )
...
* add string.prototype.replaceAll
* accept baseline
* fix bad merge in tests
* update missed baselines
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com >
2020-03-04 13:25:17 -08:00
ExE Boss
5a342742d0
feat(lib/es2020): Add Promise.allSettled(…) ( #34065 )
...
* feat(lib/es2020): Add `Promise.allSettled(…)`
* test(lib): Update tests to account for `es2020.promise`
* fix(lib/es2020): `Promise.allSettled(…)` takes `Iterable` argument
* refactor(lib/es2020): Rename `Promise.allSettled(…)` return type
* feat(lib/es2020): Simplify `Promise.allSettled(…)` type declaration
* refactor(lib/es2020): Improve naming of `Promise.allSettled(…)` types
2020-01-03 12:58:02 -08:00
Kagami Sascha Rosylight
05a2f1b110
Support bigints in ES2020 ( #33874 )
2019-12-23 12:18:52 -08:00
Ron Buckton
e8bf9584aa
Improve type checking and inference for Generators and Async Generators ( #30790 )
...
* Improve typing for Generators and Async Generators
* Add TReturn and TNext to Iterator, IterableIterator, etc.
* Update ts internal Iterator to be assignable from global Iterator
* Make 'done' optional in IteratorYieldResult
* Revert Iterable and IterableIterator to simpler versions plus other fixes
* Add additional inference tests
* Added additional tests
* PR cleanup and minor async iteration type fix
* Updated diagnostics message and added non-strict tests
* Fix expected arity of Iterator/AsyncIterator
2019-07-03 21:55:59 -07:00
Kagami Sascha Rosylight
49d6f61298
Add ES2019 Object.fromEntries function ( #30934 )
...
* add ES2019 Object.fromEntries function
* add some comments
* apply suggested changes
* add readonly and general any
2019-04-30 09:49:58 -07:00
Kagami Sascha Rosylight
1a75d525fa
add ES2020 matchAll APIs ( #30936 )
2019-04-25 14:11:50 -07:00
Kagami Sascha Rosylight
13c72b786e
Merge remote-tracking branch 'upstream/master' into es2019
2019-02-08 06:55:56 +09:00
Kagami Sascha Rosylight
b3c179540a
String.prototype.{trimStart,trimEnd} hit stage 4
2019-02-08 00:51:23 +09:00
Kagami Sascha Rosylight
f525a89e87
Array.prototype.{flat,flatMap} hit stage 4
2019-02-08 00:10:34 +09:00
Kagami Sascha Rosylight
1d8a2ea38c
Symbol.prototype.description hit stage 4
2019-01-06 11:42:55 +09:00
Kagami Sascha Rosylight
7017d1a9ef
Merge branch 'master' into async-es2018
2018-11-12 11:04:21 +09:00
Caleb Sander
0c1bf316a2
Declaration files for BigInt
2018-11-05 11:36:30 -08:00
Kagami Sascha Rosylight
76ae12d143
Change esnext.asynciterable to es2018.asynciterable
2018-08-06 16:30:08 +09:00
dangoo
b7f5f2a92b
Add missing references in clparser and libs.json
2018-06-19 22:24:32 +02:00
Mohamed Hegazy
e9ebb3e95c
Merge remote-tracking branch 'origin/master' into updateDom
2018-06-04 17:01:34 -07:00
Ron Buckton
666841264c
Merge branch 'master' into libReference
2018-06-04 14:38:56 -07:00
Mohamed Hegazy
5ba223d7dd
Change file name
2018-06-04 14:05:56 -07:00
王文璐
7910bbdccb
add esnext symbol proposal
2018-05-31 13:30:31 +08:00
Mohamed Hegazy
5abe4fead4
builf lib.es2018.full.d.ts
2018-05-21 11:01:56 -07:00
Ron Buckton
a089297ca3
Add 'lib' reference support
2018-05-04 15:51:13 -07:00