Andrew Branch
11e45162ea
Don’t emit diagnostic accessing UMD globals from modules when flag is set
2019-04-08 09:46:47 -07:00
Andrew Branch
6d1d680c0e
Add test
2019-04-08 09:46:47 -07:00
Andrew Branch
2ee93bf0f2
Add allowUmdGlobalAccess flag
2019-04-08 09:46:46 -07:00
Anders Hejlsberg
71f3e1fdde
Accept new baselines
2019-04-08 06:43:10 -10:00
Nathan Shively-Sanders
86f0d4b95a
Merge pull request #30754 from Microsoft/update-dom-042019
...
Update DOM 04-04-2019
2019-04-08 09:38:31 -07:00
Anders Hejlsberg
b49a34375d
Simplify obtaining base constraint of T[K] for writing
2019-04-08 06:36:00 -10:00
Andrew Branch
bafa4c90c1
Merge pull request #30758 from andrewbranch/bug/30647
...
Fix crash when checking function call
2019-04-08 09:22:39 -07:00
Nathan Shively-Sanders
c9f44f54c6
Merge branch 'master' into update-dom-042019
2019-04-08 09:06:34 -07:00
Nathan Shively-Sanders
2c9f7e6ef1
Merge pull request #30812 from typescript-bot/user-update-Microsoft-20190301
...
🤖 User test baselines have changed
2019-04-08 07:47:45 -07:00
typescript-bot
b39e11b273
Update user baselines
2019-04-08 13:30:46 +00:00
Anders Hejlsberg
89386ddda7
Merge pull request #30801 from Microsoft/tweakUnionTypeInference
...
Tweak union type inference
2019-04-06 21:13:30 -07:00
Anders Hejlsberg
40827eb8f8
Accept new baselines
2019-04-06 17:17:26 -10:00
Anders Hejlsberg
2b6e7304c1
Merge branch 'master' into tweakUnionTypeInference
2019-04-06 08:12:45 -10:00
Anders Hejlsberg
cd646dab7e
Add tests
2019-04-06 07:59:39 -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
Nathan Shively-Sanders
1218f29662
Merge branch 'master' into always-check-class-extends
2019-04-05 16:41:15 -07:00
Nathan Shively-Sanders
dabf2a6af2
Always check extends clause of classes
...
Even if (1) @extends is provided and (2) we're not producing
diagnostics. That's because we need to know whether the extends clause
references an imported alias.
2019-04-05 16:37:27 -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
Anders Hejlsberg
f93f8d32c4
Tweak union type inference to restore previous behavior
2019-04-05 13:23:54 -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
Andrew Branch
14722dfdaa
Add/update baselines
2019-04-04 11:47:26 -07:00
Andrew Branch
da3fdd11c1
Fix arity error sometimes reaching out of bounds of the arguments actually present
2019-04-04 11:47:26 -07:00
Andrew Branch
8576018af1
Add failing test for function calls that have at least one non-spread argument, a spread argument, and overall potentially too few arguments
2019-04-04 11:47:25 -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
Nathan Shively-Sanders
1e7482ad05
Update DOM 04-04-2019
2019-04-04 10:27:48 -07: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
Andrew Branch
45ed0186a1
Make anonymous function formatting apply to anonymous generators too
2019-04-03 17:21:20 -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