Commit Graph

32750 Commits

Author SHA1 Message Date
TypeScript Bot 420df7f12b Update user baselines +cc @sandersn (#40748)
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-10-02 16:01:22 -07:00
Richa Deshmukh b748484031 #40763 Fixed: Bad error message when forgetting a comma in an array of templ… (#40907)
* #40763 Bad error message when forgetting a comma in an array of template strings

* Code review fixes
2020-10-02 15:37:59 -07:00
Sheetal Nandi fb2f3d4fd4 Do not create packagejson imports and auto import provider in partial semantic server mode (#40890) 2020-10-02 10:59:04 -07:00
Sheetal Nandi 5ecdcef4ce Remove unnecessary requirement for createHash since we already handle absence of it (#40891) 2020-10-02 10:56:33 -07:00
Wesley Wigham 6a5527e0c6 Properly compare path prefixes when generating module paths (#40885) 2020-10-02 10:50:30 -07:00
Nathan Shively-Sanders 477e4b1a9d Fix function merged with export as namespace sourcefile (#40908)
Previously it crashed because the function-checking code didn't expect
a node with no parent.
2020-10-02 10:50:12 -07:00
Nathan Shively-Sanders b8ebad48d7 Fix recursive types in @typedef (#40861)
* Fix reference types in @typedef

Previously this code path was broken and untested. Fortunately the fix
is simple.

* add test case from #40234

* update baselines
2020-10-02 08:46:42 -07:00
Sai Geetha Kandepalli Cherukuru 0ba250dc3b Updated error message for TS1031 (#40889)
Co-authored-by: Sai Geetha <sai.geetha@ssi.samsung.com>
2020-10-01 16:37:14 -07:00
Wesley Wigham b86dc34386 Limit when we allow nested unique symbols to be serialized to when their declaration is within the same file as the context 2020-10-01 15:20:01 -07:00
Wesley Wigham e9465c5de5 Properly compare path prefixes when generating module paths 2020-10-01 14:56:32 -07:00
Wesley Wigham da86332120 Limit export= js declaration emit to only json source files (#40882) 2020-10-01 14:55:24 -07:00
Wesley Wigham 3ea81e652a Ensure whitespace jsx elements are not counted when determining if a jsx child is the only child (#40839)
* Ensure whitespace jsx elements are not counted when determining if a jsx child is the only child

* Use filtered children count for deciding constructor used

* Accept updated baselines post-merge
2020-10-01 14:36:44 -07:00
Andrew Branch 5fbe9806db Fix noUncheckedIndexedAccess with tuple rest types and generic index types (#40681)
* Fix noUncheckedIndexedAccess for tuple rest elements

* Defer inclusion of undefined for generic indexed access types

* Create separate IndexedAccessTypes depending on whether --noUncheckedIndexedAccess applies

* Undo accidental export

* Parenthesize for clearer precedence
2020-10-01 13:56:13 -07:00
Anders Hejlsberg 950dad9c29 Propagate wildcard types in template literal type construction (#40875)
* Propagate wildcard types in template literal type construction

* Add regression test

* Accept new baselines
2020-10-01 13:36:08 -07:00
Wesley Wigham b93da6291a Emit non-identifier enum member references as typeof parent[some name] (#40679) 2020-10-01 13:06:17 -07:00
Wesley Wigham 798b18be6e Add extensions to jsx automatically added import, per babel change (#40871) 2020-10-01 12:03:13 -07:00
jieniu$ 58af7defe4 Fix typo in JSON.stringify doc (#40735) 2020-10-01 09:46:58 -07:00
Anders Hejlsberg 4538e7352f Properly distribute over unions in keyof for mapped types with as clause (#40837)
* Properly distribute over unions in keyof mapped types with as clause

* Accept new baselines

* Add regression test

* Accept new baselines
2020-10-01 09:36:51 -07:00
Andrew Casey 35111231f7 Merge pull request #40755 from amcasey/SpreadLimit
Enforce a size limit in getSpreadType
2020-09-30 13:44:59 -07:00
Tim van der Lippe 070cf1112f Remove duplicate comment (#40667) 2020-09-30 09:41:31 -07:00
Andrew Branch a301001420 Use correct program when checking for reexports from AutoImportProviderProject (#40843) 2020-09-30 09:32:19 -07:00
Nathan Shively-Sanders f615e229d3 Fix default property assigned prototype (#40836)
* Fix default-property-assignment decls+prototype property decls

The check in getAssignedClassSymbol forgot to allow for default-property
assignment declarations, in part because it wasn't using a utility
function to do so.

* small cleanup

* make allowDeclaration parameter required
2020-09-30 08:36:52 -07:00
Alex T df33dd593f fix(40441): show deprecated error for deprecated property in namespace (#40605) 2020-09-30 08:26:35 -07:00
Wesley Wigham 2428ade1a9 Match suffix _after_ prefix when inferring literals out of templates (#40841) 2020-09-29 16:34:58 -07:00
Andrew Branch 2084404b8f Install playwright on demand (#40722)
* Remove playwright from package.json

* Install playwright on demand

* Adds debugging info to the playwright script

* Move installation first

* Get it working on node 10 again

* Update browserIntegrationTest.js

* Update browserIntegrationTest.js

Co-authored-by: Orta <git@orta.io>
2020-09-29 12:22:04 -07:00
Armando Aguirre f645418833 Merge pull request #40783 from armanio123/FixCommentOnStartLine
Fixed bug with toggleLineComment ends in a start line
2020-09-29 11:43:51 -07:00
Alex T 1e9f42fb16 fix(40609): add tests to cover TemplateLiteralType extraction (#40834) 2020-09-29 11:29:51 -07:00
Sidharth Vinod 7c0f0d2c69 Update type diagnostic messages with --save-dev (#40776) (#40784)
* Update type diagnostic messages with --save-dev (#40776)

* Fix Baselines
2020-09-28 23:47:16 -07:00
Alex T 335ed915f1 fix(40609): fix crash for extracting type alias with several type arguments (#40820) 2020-09-28 23:12:15 -07:00
csigs 43b5fec3c0 LEGO: Merge pull request 40822
LEGO: Merge pull request 40822
2020-09-28 17:11:12 -07:00
csigs 79c7562b5d LEGO: check in for master to temporary branch. 2020-09-29 00:10:44 +00:00
Andrew Branch 3e824f18a8 Don’t offer non-relative non-paths path when baseUrl is undefined (#40813) 2020-09-28 12:06:39 -07:00
csigs 343a0a04d7 LEGO: Merge pull request 40814
LEGO: Merge pull request 40814
2020-09-28 11:11:15 -07:00
csigs 773b7abe2f LEGO: check in for master to temporary branch. 2020-09-28 18:10:45 +00:00
TypeScript Bot dc4ccc7d41 Update package-lock.json 2020-09-28 06:21:37 +00:00
csigs 88c24e6b0d LEGO: Merge pull request 40794
LEGO: Merge pull request 40794
2020-09-26 23:11:21 -07:00
csigs ddf6c715ca LEGO: check in for master to temporary branch. 2020-09-27 06:10:39 +00:00
csigs 46abf6800e LEGO: Merge pull request 40790
LEGO: Merge pull request 40790
2020-09-26 11:10:53 -07:00
csigs 80d2718c2d LEGO: check in for master to temporary branch. 2020-09-26 18:10:26 +00:00
TypeScript Bot 2a4167150f Update package-lock.json 2020-09-26 06:21:33 +00:00
csigs ec673daf3a LEGO: Merge pull request 40785
LEGO: Merge pull request 40785
2020-09-25 23:11:20 -07:00
csigs f903d6b2ab LEGO: check in for master to temporary branch. 2020-09-26 06:10:36 +00:00
Armando Aguirre 8cf980af8d Fixed bug with toggleLineComment ends in a start line 2020-09-25 19:00:02 -07:00
Andrew Casey 9f5310fd8d Use the existing checkCrossProductUnion helper 2020-09-25 13:37:54 -07:00
Alex T 73f5f02e97 fix(40756): disable truncation for inferred type (#40764) 2020-09-25 13:01:08 -07:00
Alex T 8e86b24036 feat(40233): add JS Doc types to smart selection (#40338) 2020-09-25 12:36:04 -07:00
Andrew Branch dc8952d308 jsx option affects emit (#40775) 2020-09-25 12:20:29 -07:00
Wesley Wigham 4156662e14 Accept updated baseline 2020-09-25 11:54:33 -07:00
Wesley Wigham 74779ba4fb Add test 2020-09-25 11:50:40 -07:00
Wesley Wigham 17d996e6b2 Revert 7181c2af 2020-09-25 11:45:16 -07:00