Commit Graph

27198 Commits

Author SHA1 Message Date
Anders Hejlsberg
c8ff4bd9b3 Properly filter mapped types in getIndexType with noIndexSignatures=true 2019-04-09 15:29:40 -10:00
Anders Hejlsberg
fa407cef85 Remove old comment 2019-04-09 07:51:12 -10:00
Anders Hejlsberg
685126811a Accept new baselines 2019-04-08 09:37:01 -10:00
Anders Hejlsberg
eb1e7ec6db Optimize T[K] where T has string index signature and no other members 2019-04-08 09:36:34 -10:00
Anders Hejlsberg
71f3e1fdde Accept new baselines 2019-04-08 06:43:10 -10:00
Anders Hejlsberg
b49a34375d Simplify obtaining base constraint of T[K] for writing 2019-04-08 06:36:00 -10:00
Anders Hejlsberg
e1fd5e5225 Fix unsafe parameter coercions related to PragmaPseudoMap 2019-04-06 06:29:59 -10:00
Anders Hejlsberg
9832a83711 Accept new baselines 2019-04-05 17:00:47 -10:00
Anders Hejlsberg
294580287d Merge branch 'master' into saferIndexedAccessTypes 2019-04-05 16:23:48 -10:00
Wesley Wigham
60346b56a8 Do not request reviewers for fork-triggered PRs, just mention them 2019-04-05 18:29:30 -07:00
Wesley Wigham
73616c9725 More conditional linkage in user PR responses when manually triggered 2019-04-05 17:52:24 -07:00
Wesley Wigham
0ddd847e03 Small addition to user PR script to support fork/branch PRs 2019-04-05 16:28:25 -07:00
Wesley Wigham
c1f2aba364 Cache substitution types (#30775) 2019-04-05 14:37:47 -07:00
Sheetal Nandi
8684c3bfb8 Merge pull request #30740 from Microsoft/moduleAndAmbientResolutionConflict
When old program resolved to module and that file is included, dont consider as ambient resolution.
2019-04-05 12:15:06 -07:00
Nathan Shively-Sanders
9e2446073d Merge pull request #30773 from Microsoft/update-user-tests
Update TypeScript-React-Native-Starter
2019-04-05 11:18:27 -07:00
Nathan Shively-Sanders
0b3b4ea127 Added error for class properties used within their own declaration (#29395)
* Added error for class properties used within their own declaration

Fixes #5987.

Usages of a class property in a preceding property already gave an error, but the following doesn't yet:

```ts
class Test {
    x: number = this.x;
}
```

As with other use-before-declare checking, IIFEs are not treated as invalid uses.

* Accepted 'witness' baselines; removed unnecessary !==

* Addressed quick feedback items

* Accepted odd new baseline

* Fixed post-merge introduced lint errors

* Updated baselines again
2019-04-05 09:06:36 -07:00
Ryan Cavanaugh
d60c6a02f8 Fix missing baseline diff (#30770)
Fixes an odd build break in master
2019-04-05 09:06:00 -07:00
Anders Hejlsberg
e01fa854e2 Accept new baselines 2019-04-04 16:30:44 -07:00
Anders Hejlsberg
739acee1c9 Add tests 2019-04-04 16:30:26 -07:00
Anders Hejlsberg
f5f1f30efd Accept new baselines 2019-04-04 15:29:18 -07:00
Anders Hejlsberg
d69aeb4af6 T[K] ignores index signatures in T's constraint 2019-04-04 15:28:34 -07:00
Wesley Wigham
16450a027a Change the default type parameter constraints and defaults to unknown from {} (#30637)
* Change the default type parameter constraint and default to unknown from {}

* Relax unknown checking outside of strictNullChecks a bit

* Increase strictness on index signatures with type `unknown` so inference doesnt change surprisingly

* Remove redundant switch
2019-04-04 12:25:15 -07:00
Josh Goldberg
0c832f258d Updated baselines again 2019-04-04 15:04:11 -04:00
Andrew Branch
8c51115be1 Merge pull request #30734 from andrewbranch/bug/30664
Fall back from `globalReadonlyArrayType` to `globalArrayType` when transpiling
2019-04-04 11:57:08 -07:00
Nathan Shively-Sanders
762a557fcc Update TypeScript-React-Native-Starter
Add a 'path' field to test.json.
2019-04-04 11:37:15 -07:00
Josh Goldberg
e767ee0472 Merge branch 'master' into property-use-before-declare 2019-04-04 14:05:19 -04:00
Daniel Rosenwasser
586ecbf1d7 Merge pull request #30552 from Microsoft/omit
Add the Omit helper type
2019-04-04 13:37:33 -04:00
Daniel Rosenwasser
71af02f745 Updated annoying 'globalTypes' list. 2019-04-04 10:16:43 -07:00
Daniel Rosenwasser
e8feaf9a3e Accepted baselines. 2019-04-04 10:09:55 -07:00
Daniel Rosenwasser
1dae8fcc30 Fix tests to be non-global. 2019-04-04 10:02:46 -07:00
Daniel Rosenwasser
13d2b8d617 Add the Omit helper type. 2019-04-04 10:01:34 -07:00
Josh Goldberg
236fed9445 Fixed post-merge introduced lint errors 2019-04-03 18:09:33 -04:00
Sheetal Nandi
7ccd86bf52 When old program resolved to module and that file is included, dont consider as ambient resolution.
Fixes #30422
2019-04-03 14:05:49 -07:00
Daniel Rosenwasser
b8f6ae4e25 Accepted baselines. 2019-04-03 13:00:58 -07:00
Daniel Rosenwasser
24b1ec8681 Update version to '3.5.0'. 2019-04-03 13:00:47 -07:00
Ron Buckton
8a19e4bcf9 Merge pull request #30726 from Microsoft/fix30653
Treat hoisted temp variables as a custom prologue.
2019-04-03 11:54:37 -07:00
Andrew Branch
6c4b5ef8f2 Add new baselines 2019-04-03 11:27:54 -07:00
Andrew Branch
9475bf7d9e Fall back from globalReadonlyArrayType to globalArrayType when transpiling 2019-04-03 11:27:53 -07:00
Sheetal Nandi
5869662c3f Merge pull request #30721 from Microsoft/amdOut
Do not create multiple sourceFile to single outputFile with project redirect as the output file is included by default
2019-04-03 10:39:28 -07:00
Benjamin Lichtman
78b0956474 VS IntelliCode-related changes (#30731)
* ensure configurePlugin gives a response

* Update tests

* Update baseline

* Enable global plugin loading for external projects

* Fix lint errors
2019-04-03 10:36:04 -07:00
Alexander T
75a812b4db add new message - TS1258 (#30704) 2019-04-03 09:49:34 -07:00
Andrew Branch
fed46ea3bf Merge pull request #30719 from andrewbranch/bug/30668
Fix crash when binding deep module.exports assignment
2019-04-03 09:19:36 -07:00
Josh Goldberg
6661f90b44 Accepted odd new baseline 2019-04-03 09:00:42 -04:00
Josh Goldberg
ee4e90c1fb Merge branch 'master' into property-use-before-declare 2019-04-03 08:35:22 -04:00
Josh Goldberg
3c8ce9b316 Addressed quick feedback items 2019-04-03 08:32:51 -04:00
Ron Buckton
f04a40dd49 Treat hoisted temp variables as a custom prologue 2019-04-02 17:35:26 -07:00
Anders Hejlsberg
e79e0bd3e7 Accept new baselines 2019-04-02 15:22:45 -07:00
Anders Hejlsberg
1648d0c2ef Minor fixes 2019-04-02 15:22:22 -07:00
Sheetal Nandi
602aec2f7d Never create redirect for sourceFiles that get emitted to single output file
Fixes #30591
2019-04-02 14:55:48 -07:00
Sheetal Nandi
b559e813f4 Add test when module resolution resolves to original file of referenced project with --out
Test for #30591
2019-04-02 14:23:28 -07:00