Commit graph

21 commits

Author SHA1 Message Date
Matthew Pietz dcaefe732e
Accept generics for defineProperty (#42424)
* Accept generics for defineProperty

Both `Object.defineProperty()` and `Object.defineProperties()` return their
first argument. Use a generic so that typings can be passed through.

* Update baselines

* update missed baseline

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2021-03-11 07:57:42 -08:00
Wesley Wigham 71d4ee5d60
Preserve alias information where possible when looking up union and intersection base constraints (#42430) 2021-01-21 13:06:56 -08:00
Baptiste Darthenay bce412cb15
fix(40806): Add missing options and possible values of DateTimeFormat (#41880) 2020-12-22 09:13:01 +00:00
Wesley Wigham 6714998e01
Auto-include types for the jsx import source in the new jsx transforms 2020-10-29 14:17:24 -07:00
Neil Kistner 585603e934
Add compactDisplay and signDisplay to NumberFormatOptions (#40039) 2020-08-21 00:49:22 -07:00
Kan Adachi 37831de587
Adds [unit] and [unitDisplay] to NumberFormatOptions (#38013)
* Adds [unit] and [unitDisplay] to NumberFormatOptions

* Adds [unit] and [unitDisplay] to ResolvedNumberFormatOptions

* Updates tests for NumberFormatOptions and ResolvedNumberFormatOptions

* move unit[Display] from es5 to es2020

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-06-18 15:03:11 -07:00
Ben McCann b9aee84d3e Add support for NumberFormatOptions notation 2020-03-31 14:04:49 -07: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
Clay Miller d934401265 Change the type of 'uriComponent' (passed to 'encodeURIComponent') from 'string' to 'string | number | boolean'. Fixes #18159 (#31103)
- According to the ECMAScript 5.1 spec (§15.1.3.4), 'encodeURIComponent' invokes the abstract operation 'ToString': https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3.4
- In the spec (§9.8), 'ToString' accepts an 'Undefined', 'Null', 'Boolean', 'Number', 'String' or 'Object' argument: https://www.ecma-international.org/ecma-262/5.1/#sec-9.8
- TypeScript’s 'StringConstructor' accepts an argument with type 'any': b0100100a1/lib/lib.es5.d.ts (L518)
2019-04-26 13:07:14 -07:00
Wesley Wigham 4eb59a2d77
Fixing react defaultize+generic default props interaction (#27088)
* Add repro for fixed issue

* Fix JSX propagating flags and contextual types

* Accept slightly changed baselines

* Add modern react.d.ts and regression test
2018-09-14 14:18:47 -07:00
Wilson Hobbs c2f0c580db add types for escape and unescape methods #18813 (#19015)
* add types for escape and unescape methods #18813
although the issue is marked working as expected, it is important to mention that most major browsers maintain support for escape and unescape, and some javascript codebases moving to typescript may have escape and unescape in them. They are valid JavaScript, and thus they should be included in the global definition.

* add escape and unescape types to lib in tests

* update tests to turn CI green
2017-11-13 10:37:54 -08:00
Nathan Shively-Sanders 463e385db6 Fix react tests w/incorrect weak type assignments
This even includes react.d.ts itself!
2017-05-24 12:48:13 -07:00
Kanchalai Tanglertsampan bce7ddb5c5 Add tests and update lib tests file 2017-05-11 16:30:56 -07:00
Yui T f3a3198bec Add tests and update baselines 2017-05-03 13:42:48 -07:00
Yui T e9cd3ade86 Change how we look up children attribute from react.d.ts 2017-04-19 22:33:33 -07:00
Kanchalai Tanglertsampan dbf2a96a7e Update tests and baselines 2017-04-14 15:23:48 -07:00
Kanchalai Tanglertsampan 8ce7e37303 Update react.d.ts used during tests 2017-01-18 15:17:16 -08:00
Ryan Cavanaugh 0621eecc9f Missed some errors 2015-11-12 13:17:52 -08:00
Ryan Cavanaugh e5d6bc1561 Update react.d.ts from DefinitelyTyped 2015-11-12 12:51:16 -08:00
Ryan Cavanaugh 3426aa6644 Test cleanup 2015-11-10 12:59:47 -08:00
Ryan Cavanaugh e30a64fbdf JSX SFC WIP 2015-11-09 23:10:04 -08:00