阿卡琳
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