Daniel Rosenwasser
0df46e8733
Fix test around RegExp match vs. exec results ( #50813 )
...
* Fix up test.
* Accepted baselines.
2022-09-16 16:47:33 -07:00
DetachHead
2970c5d167
make RegExpExecArray always include index 0 ( #50713 )
...
* make `RegExpExecArray` always include index 0
* update baseline
* remove `BaseRegExpArray` interface
* add test
Co-authored-by: DetachHead <detachhead@users.noreply.github.com>
2022-09-16 15:28:26 -07:00
magic-akari
01cae69e34
fix(50796): omit questionToken in object literal method completions ( #50802 )
2022-09-16 10:06:03 -07:00
Anders Hejlsberg
3b84f76fb2
Fix crash caused by incorrect bounds check (regression in 4.8) ( #50797 )
...
* Fix bounds check
* Add regression test
2022-09-16 07:14:14 -07:00
TypeScript Bot
7e51306d30
Update package-lock.json
2022-09-16 06:25:37 +00:00
Alexis Cheron
8b35c1300e
The error "Object is possibly null or undefined" is ambiguous. ( #49797 )
...
* added object name to TS2571, 2531, 2532 and 2533
* updated localized diagnostic messages
* updated baseline to fit diagnostic message change
* Revert "updated localized diagnostic messages"
This reverts commit 738cf094bdb4a1f07d74f90747afe00366549300.
* specialized the error to EntityNameExpression
* updated baseline to fit new changes
* added multiline undefined access test
* added TS18049 - value cannot be used here
* adjusted baseline
* corrected a small linting issue
* Update error numbers after merge from main
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2022-09-15 16:13:53 -07:00
TypeScript Bot
a3f51b3b82
Update user baselines +cc @sandersn ( #43554 )
...
Co-authored-by: typescript-bot <typescript@microsoft.com>
2022-09-15 16:13:09 -07:00
Jake Bailey
ec6ae1c4d0
Partially revert #41044 , restoring parameter destructurings in d.ts files ( #50779 )
2022-09-15 10:24:43 -07:00
Alex Hsu
28232ca4b8
LEGO: Merge pull request 50783
...
LEGO: Merge pull request 50783
2022-09-15 03:09:43 -07:00
TypeScript Bot
49cfa1db17
Update package-lock.json
2022-09-15 06:22:57 +00:00
Anders Hejlsberg
4110b80fbb
Fix equality narrowing and comparable relation for intersections with {} ( #50735 )
...
* Fox equality narrowing and comparable relation for intersections with {}
* Accept new baselines
* Add tests
* Accept new baselines
2022-09-14 09:19:36 -07:00
Alex Hsu
b23f1d6b59
LEGO: Merge pull request 50771
...
LEGO: Merge pull request 50771
2022-09-14 05:02:40 -07:00
TypeScript Bot
618fb2d8b9
Update package-lock.json
2022-09-14 06:27:15 +00:00
Oleksandr T
08b91f6b82
fix(50717): tsc crashes when it sees a JSDoc tag inside an @override annotation ( #50724 )
2022-09-13 12:51:17 -07:00
Anders Hejlsberg
60963d7216
Discriminant of type never should never be matched ( #50755 )
...
* Discriminant of type 'never' should never be matched
* Add tests
2022-09-13 10:29:50 -07:00
TypeScript Bot
e37ea53715
Update package-lock.json
2022-09-13 06:30:12 +00:00
Sheetal Nandi
a88c36655b
Fix test baselining for tsserver host timeouts ( #50748 )
2022-09-12 20:36:24 -07:00
Andrew Branch
6d384876e5
Fix workflow typo ( #50746 )
2022-09-12 15:41:30 -07:00
Sheetal Nandi
6b890f93c4
Handle more places where package direcroy is converted to canonical file path ( #50740 )
...
* Add test for node16 resolution with package json lookup making casing incorrect
* Handle more places where package direcroy is converted to canonical file path
2022-09-12 15:11:35 -07:00
Jake Bailey
f5f2923c7d
Revert removal of nonInferrableAnyType ( #50691 )
2022-09-12 15:10:29 -07:00
Andrew Branch
7120b520cf
Update twoslash workflow ( #50738 )
...
* Update twoslash workflow
* Split conditional checkout
2022-09-12 13:35:36 -07:00
Jake Bailey
68d526c200
Don't run linter after tests runs ( #50597 )
2022-09-12 13:30:18 -07:00
Jake Bailey
8e5e2e08ea
Fix backticks in our JSDoc comments ( #50737 )
2022-09-12 13:27:49 -07:00
Ron Buckton
a4cabe725b
Support for auto-accessor fields from the Stage 3 Decorators proposal ( #49705 )
...
* Support for auto-accessor fields
* Add tests, ensure accessors are initialized in ctor
* classFields cleanup and PR feedback
2022-09-12 15:12:11 -04:00
TypeScript Bot
77374732df
Update package-lock.json
2022-09-12 06:30:38 +00:00
TypeScript Bot
12ab0fea9f
Update package-lock.json
2022-09-10 06:11:07 +00:00
Jake Bailey
eb40134373
Don't leave space for property access on non-integer literals ( #50703 )
2022-09-09 14:36:39 -07:00
Anders Hejlsberg
a70bb9d3ff
Preserve special intersections in mapped types ( #50704 )
...
* Preserve special intersections in mapped types
* Add regression test
2022-09-09 12:09:50 -07:00
Jake Bailey
1a1c271675
Don't remove space before dot if in property access on numeric literal ( #50695 )
...
* Add failing test
* Don't remove space before dot if in property access on numeric literal
2022-09-08 19:08:51 -07:00
Sheetal Nandi
7c918fb766
Baseline host state when baselining tsserver tests ( #50678 )
...
* Some more formatting to have baselines similar to what we have in tsserver.log
* Some refactor
* Baselines
* Baseline host details on each request
* More formatting per tsserver log
* More baselining of host state
* Update Baselines and/or Applied Lint Fixes
* Use utc time in logger for baselines
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2022-09-08 12:31:14 -07:00
Jake Bailey
2f1ba45cba
Update LKG and devDep of typescript to v4.8.3 ( #50689 )
2022-09-08 12:00:16 -07:00
TypeScript Bot
be4e9bac8f
Update package-lock.json
2022-09-08 06:22:04 +00:00
Wesley Wigham
f46a680863
Remove error message in node16 ( #50673 )
2022-09-07 18:47:39 -07:00
Amit Dahan
ab831d0180
Ignore --help and -? in tsc init generated compilerOptions ( #50628 )
...
* Ignore --help and -? in `tsc init` generated compilerOptions
* Disregard -?
* Remove unused fixture
2022-09-07 12:43:16 -07:00
Andrew Branch
bb6f36f7c8
Forward intersection state flag to conditional type target check ( #50620 )
2022-09-07 10:07:24 -07:00
TypeScript Bot
b58721fe15
Update package-lock.json
2022-09-07 06:31:57 +00:00
Jake Bailey
3c3820b1a4
Simplify CI detection ( #50661 )
2022-09-06 16:36:37 -07:00
Jake Bailey
9ac1fce117
Fix eslint not looking at certain scripts, fix lints ( #50660 )
2022-09-06 16:05:47 -07:00
Sheetal Nandi
fd05c0cc6d
Make useFsEvents as default strategy for the watching ( #50366 )
...
* Remove unnecessary parameter
* Dont store name unnecessarily in the watchers
* Polled watches and not files
* Use fs events as default watching
* Some refactoring
* Make single per directory native watchers now that we are using it as default
* Rename
* Comment
2022-09-06 13:14:50 -07:00
Jake Bailey
5c2f770d97
Remove unused cancellation from build ( #50658 )
2022-09-06 12:43:06 -07:00
TypeScript Bot
66fbf058ec
Update package-lock.json
2022-09-06 06:30:40 +00:00
TypeScript Bot
7910c509c4
Update package-lock.json
2022-09-03 06:07:00 +00:00
Will Nayes
fd3a84c3f0
Report every instance of TS1208 ( #50101 )
...
* Report every instance of TS1208
* Test case for multiple cases of TS1208
* Add test case for isolatedModules with moduleDetection forced
2022-09-02 13:44:47 -07:00
Sheetal Nandi
62f980aff8
Check if its same buildinfo only for directly referenced projects and not recursively ( #50617 )
...
Fixes #50545
2022-09-02 13:38:00 -07:00
Andrew Branch
856c7c5fdd
Allow {} to narrow in same special cases as unknown ( #50601 )
2022-09-02 09:47:27 -07:00
Anders Hejlsberg
854d448e5c
in operator shouldn't narrow {} originating in unknown (#50610 )
...
* 'in' operator shouldn't narrow {} originating in unknown
* Add regression test
2022-09-02 09:30:17 -07:00
TypeScript Bot
549e61d0af
Update package-lock.json
2022-09-02 06:22:41 +00:00
Oleksandr T
bcf994996e
fix(50079): show deprecated on JSX attributes ( #50084 )
2022-09-01 16:59:29 -07:00
Andrew Branch
5df09a514c
Use bidirectional comparability in narrowing ( #50592 )
...
* Use bidirectional comparability (aka comparability) in narrowing
* Rename test, check other CFA branch, test without strictNullChecks
2022-09-01 14:26:48 -07:00
Jake Bailey
891cdc58aa
Remove unused baselines ( #50593 )
2022-09-01 12:48:28 -07:00