Nathan Shively-Sanders
8da3eff7b0
Subtypes of ErrorConstructor extend it ( #35549 )
...
Previously subtypes of Error extended Error, but the matching subtypes
of ErrorConstructor did not extend ErrorConstructor. The members in
es5.d.ts are identical, so there's no need except for allowing interface
merging into ErrorConstructor to affect subtypes as well.
2020-01-29 13:26:00 -08:00
ExE Boss
6f0c6417e8
fix(lib/es2019): Symbol.description may be undefined ( #36263 )
...
* fix(lib/es2019): `Symbol.description` may be `undefined`
* Update user baselines (EB-Forks#1)
Co-authored-by: TypeScript Bot <ts_bot@rcavanaugh.com>
2020-01-24 10:06:04 -08:00
Anders Hejlsberg
df3b5bbdab
Fix ThisParameterType<T> type ( #36013 )
...
* Simplify ThisParameterType<T> type
* Add tests
2020-01-06 08:55:34 -10:00
Nathan Shively-Sanders
28319a541a
CustomElementConstructor: should be construct signature ( #36030 )
...
Was previously incorrectly a call signature. Had to override it
manually.
2020-01-06 10:09:03 -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
Nathan Shively-Sanders
bb306a757b
Update DOM from TSJS-lib-generator ( #35938 )
2019-12-31 14:12:18 -08:00
Kagami Sascha Rosylight
05a2f1b110
Support bigints in ES2020 ( #33874 )
2019-12-23 12:18:52 -08:00
Nathan Shively-Sanders
75301c8e2c
DOM update 2019-11-19 ( #35207 )
...
* DOM update 2019-11-19
* update baselines
* update more baselines
2019-11-19 15:02:51 -08:00
Nathan Shively-Sanders
262ec6171d
Make ImageData(Uint8ClampedArray)'s 3rd param optional ( #34519 )
...
It can be inferred from the first two.
Fixes #33266
Baseline update from microsoft/TSJS-lib-generator#790
2019-10-17 11:14:07 -07:00
Martin Johns
408b17649a
doc(lib/es5): Fix grammar in DateConstructor.UTC documentation ( #34509 )
...
This fixes #34507 .
2019-10-16 08:33:22 -07:00
Martin
b7c85c7382
Update Math.round in es5.d.ts ( #33920 )
...
Update documentation of Math.round to reflect that it turns a float in to an integer and returns an integer.
2019-10-14 10:55:55 -07:00
Ingvar Stepanyan
1820df187b
Update DOM from TSJS-lib-generator ( #33753 )
...
This bumps generated bindings to include https://github.com/microsoft/TSJS-lib-generator/pull/767 .
Note that other related APIs were already updated in https://github.com/microsoft/TSJS-lib-generator/pull/755 and https://github.com/microsoft/TSJS-lib-generator/pull/756 and included in current TypeScript beta.
Unfortunately, this one slipped under the radar, but it would be really great to include these changes in beta too for consistency between different WebAssembly methods.
2019-10-14 09:00:33 -07:00
Michael Tamm
6bd3b21f6c
fix (lib): Loosen predicate return types of typed arrays, adapt docs ( #31343 )
...
fixes #31472
2019-09-30 15:26:39 -07:00
Nathan Shively-Sanders
e72937deff
Update DOM ( #33627 )
...
* Update DOM
* Update baselines
2019-09-26 17:20:05 -07:00
Orta Therox
b544901d5e
Merge master
2019-09-25 14:46:36 -04:00
Jack Bates
78057a64ac
Allow readonly arguments to Promise.all(), etc.
2019-09-19 11:11:59 -07:00
Ron Buckton
344dba8809
Fix incorrect parameter types for AsyncIterator next/return ( #33354 )
2019-09-17 21:02:12 -07:00
Michal Przybys
63d940da53
Added example of sortFn
2019-09-17 16:32:15 +02:00
Michal Przybys
2c8df45aa9
Fixed typo
2019-09-12 10:17:05 +02:00
Michal Przybys
894eb59be0
Better Array.sort compareFn docs
2019-09-11 13:24:06 +02:00
Alexander T
fea9e11174
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-08-20 11:07:18 +03:00
falsandtru
5ae286329f
Update String#toLocale{Lower,Upper}Case methods ( #32961 )
2019-08-19 09:10:12 -07:00
Alexander T
b6d981aec8
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-08-16 12:13:57 +03:00
阿卡琳
a53e4a19ef
Allow to omit the begin parameter of %TypedArray%.prototype.subarray ( #32125 )
...
* Allow to omit the begin parameter of %TypedArray%.prototype.subarray
* update baselines
2019-08-15 15:58:24 -07:00
Matthew Miller
c6a0739dc9
fix(docs): Fixed the docs for Array#slice not spec ( #31182 )
...
ifying that the 'end' parameter is exclusive.
2019-08-15 10:28:28 -07:00
Kagami Sascha Rosylight
f304b81fa5
Point es2020 in esnext.d.ts ( #32776 )
2019-08-15 10:06:46 -07:00
Alexander
b3afb55d7a
disable array-type for es2019.array.d.ts
2019-08-10 10:37:33 +03:00
Alexander
ceccfd8867
array-type: [ default: array, generic: array ]
2019-08-08 21:30:18 +03:00
Alexander T
11ec6118fb
@typescript-eslint/array-type
2019-07-29 18:39:11 +03:00
Alexander T
949770a4fe
@typescript-eslint/triple-slash-reference
2019-07-19 10:30:40 +03:00
Alexander T
36a6028d56
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-07-19 10:16:10 +03:00
Jake Boone
c30ba7884c
Fix capitalization in parseInt description
2019-07-18 12:38:14 -07:00
Alexander T
68ae4382bd
jsdoc/check-alignment
2019-07-18 15:06:56 +03:00
Alexander T
64baa804a8
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-07-15 18:35:34 +03:00
Nathan Shively-Sanders
f209995a01
Update DOM: Remove carriage returns from comments ( #32352 )
2019-07-11 10:16:46 -07:00
Nathan Shively-Sanders
5289f2ede9
Update DOM from TSJS-lib-generator ( #32335 )
...
* Update DOM from TSJS-lib-generator
1. Update Navigator and other small updates.
2. Make ProgressEvent generic.
3. Make `window: Window & typeof globalThis`.
4. Add types:
* CSS Overflow
* CSS Masking
* Web Authentication
* WebGL 2
The big change is that `window` now includes globals in its type via
`typeof globalThis`. This helps some codebases a lot, such as
chrome-devtools-frontend.
* Update baselines
2019-07-10 16:36:50 -07:00
Alexander T
4defd1d635
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-07-04 12:49:33 +03: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
Alexander T
f6a50067d3
@typescript-eslint/indent
2019-06-27 11:30:03 +03:00
Alexander T
33eeceec9e
Merge branch 'master' of https://github.com/Microsoft/TypeScript into feature/eslint
2019-06-19 18:48:52 +03:00
Nathan Shively-Sanders
1e6a6e9989
Update DOM and baselines ( #31806 )
2019-06-18 08:41:40 -07:00
Alexander T
627211b06b
quotes
2019-06-14 12:18:27 +03:00
Alexander T
650600c5e4
linebreak-style
2019-06-14 11:58:42 +03:00
Alexander T
f611ec68ed
microsoft-typescript/no-double-space
2019-06-14 11:52:48 +03:00
Alexander T
65ddc1fef2
microsoft-typescript/type-operator-spacing
2019-06-14 11:48:52 +03:00
ExE Boss
81f71530c4
fix(lib): Fix RegExp constructor with string|RegExp and flags ( #30586 )
2019-06-13 15:38:11 -07:00
Yoshiki Shibukawa
24a2ed7d83
Fix es2019.string.d.ts
...
trimLeft and trimRight's comments are swapped.
2019-06-09 08:43:38 +09:00
Nathan Shively-Sanders
bdf8d5c8cb
Update DOM and baselines
2019-06-06 15:13:16 -07:00
Nathan Shively-Sanders
5d9d4b2553
Manually copy just postMessage changes ( #31557 )
...
* Manually copy just postMessage changes
* Update baselines
2019-05-23 13:26:41 -07:00
Nathan Shively-Sanders
b36c8a0690
Make anyArray.filter(Boolean) return any[], not unknown[] ( #31515 )
...
* Add this-parameter workaround to Array.filter
Allows anys.filter(Boolean) to once again return any[], not unknown[].
* Add any constraint to Boolean factory function
I want to test how well this works.
* Remove Boolean factory type guard
* Remove typeGuardBoolean test
2019-05-22 09:45:41 -07:00