Commit Graph

31210 Commits

Author SHA1 Message Date
Daniel Rosenwasser d5b4ad8c47 Accepted baselines. 2020-10-09 16:54:50 -07:00
Daniel Rosenwasser 908eeae7c3 Error on 'void' prior to property/index accesses. 2020-10-09 16:53:58 -07:00
Daniel Rosenwasser b31be85169 Accepted baselines. 2020-10-09 16:52:17 -07:00
Daniel Rosenwasser 8ba6f5f29d Added test. 2020-10-09 16:52:16 -07:00
Daniel Rosenwasser 6784c6ebe0 Accepted baselines. 2020-10-09 16:52:11 -07:00
Daniel Rosenwasser add2833769 Add new error message for being possibly 'void'. 2020-10-09 16:48:23 -07:00
Nathan Shively-Sanders a109b5d5c8 Fix relative paths in commonjs decl emit w/property access (#40986)
```js
const x = require('./foo').y
```

was incorrectly using the unmangled require path as the temp name in
emit:

```
import ./foo_1 = require('./foo')
import x = ./foo_1.y
```

It now uses the imported identifier:

```
import x_1 = require('./foo')
import x = x_1.y
```

Discovered while fixing #37832
2020-10-09 16:32:57 -07:00
Wesley Wigham aee18e0725 Merge pull request #41017 from weswigham/fix-unchecked-cast-crash
Fix crash due to unchecked cast in addImplementationSuccessElaboration
2020-10-09 15:58:08 -07:00
Sheetal Nandi e6d525c5cb Structure is reused should be on new program instead of old program (#41005) 2020-10-09 15:56:51 -07:00
Sheetal Nandi 876e44bbc6 Handle extra file extensions when wild card directory watch is invoked (#41018)
Fixes #40495
2020-10-09 14:07:55 -07:00
Andrew Branch 4766a2e5a3 Fix overlapping changes when un-qualifying import use site within transformed export (#40987)
* Fix overlapping changes when un-qualifying import use site within transformed export

* Break long line
2020-10-09 13:24:18 -07:00
Wesley Wigham 39c2a09b1f Fix crash due to unchecked cast in addImplementationSuccessElaboration 2020-10-09 10:53:59 -07:00
TypeScript Bot f7212aa119 Update package-lock.json 2020-10-09 06:23:21 +00:00
Wesley Wigham 02288a4c73 Merge pull request #41001 from weswigham/overload-impl-elab
Add elaboration when call fails all overloads but succeeds against the implementation signature
2020-10-08 18:13:25 -07:00
Wesley Wigham f324fde873 Fix lint 2020-10-08 17:34:06 -07:00
Wesley Wigham ca26ca1dd0 Small baseline change - find() will get the first declaration with a body 2020-10-08 17:20:09 -07:00
Wesley Wigham de204430ec PR feedback 2020-10-08 17:17:06 -07:00
Wesley Wigham 6b29f36674 Rename variable 2020-10-08 16:14:47 -07:00
Wesley Wigham a49099fd15 Add elaboration when call fails all overloads but succeeds against the implementation signature 2020-10-08 14:55:14 -07:00
Alex T 23c5f9260c fix(3758): show completion for object literals in an assignment pattern (#40976) 2020-10-08 12:27:53 -07:00
csigs 197ac804d1 LEGO: Merge pull request 40988
LEGO: Merge pull request 40988
2020-10-07 17:11:17 -07:00
csigs 6f91ed1672 LEGO: check in for master to temporary branch. 2020-10-08 00:10:47 +00:00
Nathan Shively-Sanders cf3e28ea66 Revert "feat(40197): handle uncalled function checks in binary expressions (#40260)"
This reverts commit eaf4f46c17.
2020-10-07 14:14:49 -07:00
Alex T eaf4f46c17 feat(40197): handle uncalled function checks in binary expressions (#40260) 2020-10-07 14:06:42 -07:00
Nathan Shively-Sanders 4283428906 Fix export binding of namespaced typedefs (#40980)
The binder incorrectly rejected implicit namespace declarations in
typedefs.
2020-10-07 13:21:02 -07:00
Wesley Wigham 4dc7e59248 Merge pull request #40953 from weswigham/improve-completions-large-literal-perf
Improve the performance of requesting completions within a massive array literal
2020-10-07 12:44:20 -07:00
Wesley Wigham d6af322287 Add comment 2020-10-07 12:27:43 -07:00
csigs 21ea557dcc LEGO: Merge pull request 40984
LEGO: Merge pull request 40984
2020-10-07 11:11:10 -07:00
csigs 30bb34ada4 LEGO: check in for master to temporary branch. 2020-10-07 18:10:42 +00:00
Nathan Shively-Sanders fc783a9000 Fix missed tasks to add esnext.weakref (#40981)
Follow up to #38232, based on #33844
2020-10-07 11:06:04 -07:00
Anders Hejlsberg f34220980b Add isDeeplyNestedType logic to getResolvedBaseConstraint (#40971)
* Add isDeeplyNestedType logic to getResolvedBaseConstraint

* Accept new baselines

* Add regression test

* Accept new baselines

* Fix lint issue
2020-10-07 05:50:06 -07:00
csigs 14c731689e LEGO: Merge pull request 40975
LEGO: Merge pull request 40975
2020-10-06 23:11:16 -07:00
csigs 486b779b58 LEGO: check in for master to temporary branch. 2020-10-07 06:10:48 +00:00
csigs 80413344bb LEGO: Merge pull request 40972
LEGO: Merge pull request 40972
2020-10-06 17:11:19 -07:00
csigs f0515eed0e LEGO: check in for master to temporary branch. 2020-10-07 00:10:51 +00:00
Mauro Bringolf 48ad25d4b9 Add currency sign to NumberFormatOptions type (#40709) 2020-10-06 16:30:09 -07:00
Daniel Rosenwasser 3766be1bde Test indexed access to this on intersections (#40967)
* Added test.

* Accepted baselines.
2020-10-06 14:18:44 -07:00
Wesley Wigham 692502e99f Merge pull request #40576 from weswigham/add-pyright
Add pyright user test
2020-10-06 13:22:27 -07:00
Wesley Wigham 87c83306dd Use suggested command, add now-fixed log 2020-10-06 12:56:51 -07:00
Wesley Wigham f8382d720f Add pyright user test 2020-10-06 12:37:05 -07:00
Wesley Wigham 3df8bc6a03 Rephrase to use binarySearchKey 2020-10-06 12:29:58 -07:00
Sheetal Nandi d94b8e42a6 Fixes calculating resolved project reference to redirect for module resolution (#40954)
* Add test for #38711

* Fixes calculating resolved project reference to redirect for module resolution
Fixes #38711

* Update src/compiler/program.ts
2020-10-06 11:23:05 -07:00
csigs 28469fb8b7 LEGO: Merge pull request 40965
LEGO: Merge pull request 40965
2020-10-06 11:11:19 -07:00
csigs b2b648605b LEGO: check in for master to temporary branch. 2020-10-06 18:10:50 +00:00
Alex T 5c55fc0a21 fix(40817): suggest import for default exported alias (#40845) 2020-10-06 09:52:35 -07:00
Niklas Mollenhauer a21003dbf8 Use npm ci for nightly builds (#40905)
Using [npm ci](https://docs.npmjs.com/cli/ci.html) keeps the builds reproducible.

In this PR, we keep the nightly build en par with the [CI build workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/ci.yml#L33) as well as the [releasable package workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/release-branch-artifact.yaml#L24).
The used package-lock.json is updated [an hour before this workflow](https://github.com/microsoft/TypeScript/blob/master/.github/workflows/update-package-lock.yaml#L7), there should not be any lockfile conflicts.
2020-10-06 12:52:07 -04:00
ikokostya bd1d8e5ca2 Add definitions for WeakRef and FinalizationRegistry (#38232)
* Add definitions for WeakRef and FinalizationRegistry

Fixes #32393

* Mark callback parameter in FinalizationRegistry#cleanupSome() as optional

* Make FinalizationRegistry.prototype.cleanupSome optional

* Remove FinalizationRegistry.prototype.cleanupSome()

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-10-06 09:26:05 -07:00
Simon Chan fc0eed3795 lib: remove length field from SharedArrayBuffer (#40858)
* fix(lib): SharedArrayBuffer does not have a `length` field

* Revert formatting change.

* test: add tests for SharedArrayBuffer.length

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-10-06 08:27:56 -07:00
Alex T 0c7d45a9ed fix: change deprecated FunctionLike type to SignatureDeclaration (#40795) 2020-10-06 07:51:01 -07:00
Alex T 1e49ad8370 fix(40685): fix generating docs for arrow functions (#40728) 2020-10-06 07:50:08 -07:00