AnyhowStep
01e71820fc
Fixes Microsoft/TypeScript#6955
2018-10-31 17:00:24 -04:00
Basarat Ali Syed
c86b9ca660
📝 Better description of Pick mapped type
...
closes https://github.com/Microsoft/TypeScript/issues/25976
2018-10-03 10:57:43 +10:00
Anders Hejlsberg
df1e33a8a5
Add 'bind' overloads for rest parameter arrays
2018-09-12 13:17:11 -07:00
Anders Hejlsberg
a5dece30d9
Update declarations
2018-09-11 06:14:41 -07:00
Anders Hejlsberg
55b6513078
New CallableFunction and NewableFunction types in es5.d.ts
2018-09-10 15:12:42 -07:00
Nathan Shively-Sanders
c929e74310
Add [Constructor]Parameter types to lib.d.ts ( #26243 )
2018-08-31 07:46:16 -07:00
Daniel Rosenwasser
b8ca925de0
Place 'pop' first in 'Array'.
2018-07-10 19:34:19 -07:00
Wesley Wigham
616e6e6ca3
Move symbol instance type to es5 to follow PropertyKey ( #23864 )
...
* Move symbol instance type to es5
* Accept baseline changes from moving Symbol
2018-05-03 10:50:10 -07:00
Daniel Rosenwasser
9672116d8c
Merge remote-tracking branch 'origin/master' into importDotMeta
2018-04-25 22:21:56 -07:00
Daniel Rosenwasser
a55febda77
Make 'ImportMeta' more minimal.
2018-04-24 12:38:42 -07:00
Anders Hejlsberg
16cd5580a6
Merge branch 'master' into improveIndexTypes
...
# Conflicts:
# src/compiler/checker.ts
# src/server/utilities.ts
2018-04-16 16:18:29 -07:00
Daniel Rosenwasser
f0081f0a04
Basic checking for 'import.meta'.
2018-04-10 12:59:03 -07:00
Anders Hejlsberg
68ce69a351
Move 'PropertyKey' from es2015.core.d.ts to es5.d.ts
2018-04-09 07:45:55 -10:00
Holger Jeromin
c3d8ec0ee2
refactor: use union type in DateConstructor
2018-04-06 11:27:20 +02:00
Priyantha Lankapura
80464e8ff1
fix typo in intellisense ( #21914 )
2018-02-13 18:52:33 -08:00
Anders Hejlsberg
2cc1d735ec
Add Required<T> to lib.d.ts
2018-02-13 06:47:52 -08:00
Anders Hejlsberg
2aba29fc32
Add Exclude, Extract, NonNullable, ReturnType, and InstanceType types
2018-02-09 14:22:46 -08:00
Nathan Shively-Sanders
be0fcd5174
Array.concat now takes ConcatArray, not ReadonlyArray ( #21462 )
...
* Overloads in Array.concat now handle ReadonlyArray
Previously it was union types, which is slower.
* Make arrayConcat3 test stricter
* Switch to InputArray instead of adding overloads
* Update baselines
* Update baselines correctly
* Rename to ConcatArray and add slice method
Should make it, respectively, easier to understand this specific type
and harder to satisfy it by mistake.
2018-02-02 13:20:40 -08:00
Ryan Cavanaugh
100262537a
Remove TODO
2017-12-13 10:58:04 -08:00
Daniel Rosenwasser
53657069bc
Merge pull request #20517 from gagoman/16900
...
fix docs for Math.ceil and Math.floor (#16900 )
2017-12-07 16:56:27 -08:00
Andy
5e5b7706e5
Hack to allow concat to work even when an Array isn't assignable to ReadonlyArray ( #20455 )
2017-12-07 12:15:12 -08:00
Alex Khomchenko
d383f18d72
fix docs for Math.ceil and Math.floor ( #16900 )
2017-12-06 22:53:42 +01: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
falsandtru
d23e5f1ee2
Fix Array.{reduce,reduceRight} methods ( #18987 )
2017-10-09 17:11:31 -07:00
Adrian Leonhard
8c2d79caa6
TypedArrays: fixed find and findIndex callback param obj type. ( #18493 )
...
Fixes #18425 .
2017-09-18 12:12:08 -07:00
Thomas den Hollander
1ee3b65141
Change typed array signatures ( #18367 )
2017-09-11 11:22:45 -07:00
Alex Chugaev
de313ff1bd
Object.getOwnPropertyDescriptor() returns 'undefined' if property descriptor not found. ( #18148 )
2017-09-07 10:58:05 -07:00
Mohamed Hegazy
562abf333a
Follow up on #16223 cleaning up Array declarations ( #18116 )
...
* Follow up on #16223 , Remove generic signatures from Array, ReadOnlyArray and TypedArrays
* Remove test
* Accept baselines
* Remove invalid `this: void` in callbacks
* accept baselines
2017-08-30 10:22:02 -07:00
Andy
54af8aa945
Array arguments to concat
should be ReadonlyArray
s ( #17806 )
2017-08-16 14:32:14 -07:00
Homa Wong
e8f674fafb
Update es5.d.ts
2017-07-18 00:58:05 -07:00
Mohamed Hegazy
a3f39ece62
Fix #16521 : mark thisArg as optional in typed array map function ( #16526 )
2017-06-14 11:58:21 -07:00
Mohamed Hegazy
a76b4b1f28
Array cleanup ( #16223 )
...
* Fix for #13840 : Remove map tuple overloads
* Coalesce signatures on array that use this args
* Remove generic signatures
* Add comments to toLocalString
* clean up typed array interfaces
2017-06-04 14:26:18 -07:00
Ron Buckton
578826cd61
Adds definitions for the es2017 Atomics global object
2017-05-10 17:19:26 -07:00
Reiner Dolp
eb36455c8b
fix issue 15275
2017-04-19 19:37:37 +01:00
Reiner Dolp
bb1f8f17db
fix issue 10452
2017-04-19 19:36:19 +01:00
Mohamed Hegazy
a9c015a56a
Fix #15184 : Use void
and not undefined
for this
parameter types in the library
2017-04-13 16:25:48 -07:00
Andy Hanson
0152e8c4bb
Fix lint scripts
2017-03-20 09:58:37 -07:00
Andy Hanson
2305c10a65
Fix lint errors
2017-03-17 13:54:18 -07:00
falsandtru
d86976a9ef
Convert overloads to unions
2017-03-14 08:06:00 +09:00
e-cloud
cedad974d2
fix: add generic info for methods with thisArg of built-in classes
...
when enabling `noImplicitThis`, if assing this argument for
methods like `array.forEach` will cause compilation error.
This commit fixes it.
fix #12548
2017-03-09 11:52:54 +08:00
Anders Hejlsberg
7561cdf6bf
Add ThisType<any> to Object.{create|defineProperty|defineProperties}
2017-03-01 17:16:09 -08:00
Anders Hejlsberg
ee7b93c1a0
Merge branch 'master' into contextualThisType
2017-02-28 09:52:03 -08:00
Mohamed Hegazy
a89c62a268
Fix #14136 : Make Object.create
return any
all the time
2017-02-17 16:47:51 -08:00
Anders Hejlsberg
fe32bb7642
Merge branch 'master' into contextualThisType
2017-02-16 20:15:55 -08:00
Anders Hejlsberg
8cd6c5d8eb
Introduce ThisType<T> marker interface
2017-02-16 17:03:39 -08:00
Ron Buckton
23216f9ba1
Merge branch 'master' into genericDefaults
2017-02-14 19:19:18 -08:00
Mohamed Hegazy
ae02db4950
Merge pull request #13936 from Microsoft/FixObjectCreate
...
Fix #13932 : Change the order of overloads and allow union for `Object.create`
2017-02-14 13:29:41 -08:00
Mohamed Hegazy
b3bb8ae996
Merge pull request #14000 from mattmccutchen/lib-string-replace
...
lib: Fix documentation of String.replace first parameter.
2017-02-14 11:39:12 -08:00
Mohamed Hegazy
6feafc9483
Remove extra overload
2017-02-13 20:49:37 -08:00
Mohamed Hegazy
d7ae0df647
Move interface Promise<T> declaration to es5.d.ts
2017-02-13 12:50:44 -08:00