Tobeyyy and GitHub
e01ced050c
fix type checking of variables named "exports" ( #52209 )
2023-01-19 16:59:07 -08:00
Andrew Branch and GitHub
cfe1842adf
Add verbatimModuleSyntax, deprecate importsNotUsedAsValues and preserveValueImports ( #52203 )
2023-01-19 16:56:30 -08:00
Ron Buckton and GitHub
5b18979697
Implement the Stage 3 Decorators Proposal ( #50820 )
2023-01-19 17:54:12 -05:00
Ron Buckton and GitHub
20182cf848
Organize imports collation ( #52115 )
2023-01-19 17:53:51 -05:00
Jake Bailey and GitHub
b7f619d25e
Make catch clause checking consistent with variable declarations ( #52240 )
2023-01-19 11:56:37 -08:00
Mateusz Burzyński and GitHub
b7290a75db
Remove unnecessary isTupleType checks in inferFromObjectTypes ( #52026 )
2023-01-18 16:54:19 -08:00
Jake Bailey and GitHub
22b362ceac
Enable strictFunctionTypes ( #49929 )
2023-01-17 17:20:51 -08:00
Andrew Branch and GitHub
436833aba1
Allow allowImportingTsExtensions to be set in any module resolution mode ( #52230 )
2023-01-17 15:13:17 -08:00
Mateusz Burzyński and GitHub
16c695cdbb
Improve uncalled function check related to parenthesized and binary expressions ( #50756 )
...
fixes https://github.com/microsoft/TypeScript/issues/37598
2023-01-17 13:22:16 -08:00
navya9singh and GitHub
f6fc444b33
Fix(51828): extends field in tsconfig.json does nothing with empty string ( #51981 )
2023-01-17 12:31:23 -08:00
Oleksandr T and GitHub
9c9d4b029d
feat(51086): satisfies support in JSDoc ( #51753 )
2023-01-17 10:22:22 -08:00
Mykola Basov and GitHub
cb4c7689e6
Add Array.prototype.findLast() and Array.prototype.findLastIndex() ( #49636 )
...
Signed-off-by: mbasov2 <mbasov2@bloomberg.net >
2023-01-13 15:35:50 -08:00
Anders Hejlsberg and GitHub
41e4139357
Only used cached undefined contextual type for requests with no flags ( #52224 )
2023-01-13 10:10:56 -08:00
Anders Hejlsberg and GitHub
d6de73b20a
Instantiate rest type as needed in getNarrowedTypeOfSymbol ( #52215 )
2023-01-13 07:23:39 -08:00
Anders Hejlsberg and GitHub
36e9570933
Propagate constness of type parameters in variadic tuples ( #52129 )
2023-01-13 07:23:04 -08:00
Jake Bailey and GitHub
ef81c80482
Bump LKG and package.json to 5.0.0-dev.20230112 ( #51787 )
2023-01-12 19:17:37 -08:00
Andrew Branch and GitHub
3e9703f126
Add additional diagnostic for packages that only resolve under non-exports-respecting modes ( #52173 )
2023-01-12 16:30:35 -08:00
Ron Buckton and GitHub
9cdba994ac
Remove some properties from Identifier ( #52170 )
2023-01-12 17:20:12 -05:00
Anders Hejlsberg and GitHub
59e4e38d08
Don't widen when type parameter occurs at top level in type predicate ( #52031 )
2023-01-12 13:18:36 -08:00
Wesley Wigham and GitHub
9da2a9aa84
Fix inferences between alias type arguments and defaulted alias type arguments ( #51771 )
2023-01-11 15:28:53 -08:00
Jake Bailey and GitHub
28e4c81794
Tweak co/contra inference logic from #52123 ( #52180 )
2023-01-10 17:08:36 -08:00
Andrew Branch and GitHub
14b0d6d4bf
Fix nested package json lookup in modes that respect package.json exports ( #51995 )
2023-01-10 16:18:26 -08:00
Jake Bailey and GitHub
b3eca6883c
Suppress resolvedUsingTsExtension during loadModuleFromDirectory ( #52189 )
2023-01-10 16:05:44 -08:00
Mateusz Burzyński and GitHub
3da4886c76
Fixed an issue with quickInfo crashing on a function property returned from generic function ( #49049 )
2023-01-10 16:05:01 -08:00
Andrew Branch and GitHub
ec9f6a428b
Ensure self-name resolution uses same extension priorities as external imports ( #52185 )
2023-01-10 13:57:50 -08:00
Josh Goldberg and GitHub
67cdaf9215
Fixed crash when reporting infer extends on invalid name with declaration ( #52032 )
2023-01-10 13:11:24 -08:00
Gabriela Araujo Britto and GitHub
2082ef2e3f
fix narrowTypeByDiscriminant for non null expression access ( #52136 )
2023-01-10 09:49:13 -08:00
Wesley Wigham and GitHub
89e928e8b4
Add --allowArbitraryExtensions, a flag for allowing arbitrary extensions on import paths ( #51435 )
2023-01-09 17:12:42 -08:00
6bedd1c227
Allow indirect calls ( #51989 )
...
Co-authored-by: Klaus Meinhardt <klaus.meinhardt1@gmail.com >
2023-01-09 15:56:33 -08:00
Mateusz Burzyński and GitHub
2c1fda249f
Fixed false positive circular errors for await expressions with simple non-generic calls in CFA loops ( #51126 )
2023-01-09 13:56:52 -05:00
Wesley Wigham and GitHub
00567618bd
Reuse existing module specifiers in js declaration emit ( #52089 )
2023-01-09 10:15:42 -08:00
Wesley Wigham and GitHub
11bc7b758d
Issue error on export= in esm mode declaration file ( #52109 )
2023-01-09 10:15:23 -08:00
Ron Buckton and GitHub
90fb764a0f
Fix private name generation and missing emit for auto-accessors ( #52132 )
2023-01-06 21:08:51 -05:00
Jake Bailey and GitHub
f1ff0de943
Use native generators/iterables, remove helper cruft ( #51921 )
2023-01-06 14:40:56 -08:00
Gabriela Araujo Britto and GitHub
e60c210c57
Improve JSX invalid children type error ( #52105 )
2023-01-06 10:26:53 -08:00
Anders Hejlsberg and GitHub
400e2c2bd8
Defer conditional types with multi-element tuple types in extends clause ( #52091 )
2023-01-06 09:18:12 -08:00
Anders Hejlsberg and GitHub
fc8538608b
Improve logic that chooses co- vs. contra-variant inferences ( #52123 )
2023-01-06 07:56:51 -08:00
Jake Bailey and GitHub
bfeb927d43
Remove Push from public API ( #52122 )
2023-01-05 16:18:53 -08:00
Gabriela Araujo Britto and GitHub
aae3115838
Call getTypeOfSymbol in getNarrowedTypeOfSymbol to avoid running into circularities when computing types ( #51914 )
2023-01-05 13:12:56 -08:00
Jake Bailey and GitHub
3c7660a37b
Make Collection and ReadonlyCollection internal ( #51964 )
2023-01-05 10:22:32 -08:00
Oleksandr T and GitHub
4378441e0c
fix(51198): The 'this' context of type 'T' is not assignable to method's 'this' of type 'this' ( #51216 )
...
* fix(51198): skip checking this context of type assignable to super
* update comment
2023-01-04 12:05:19 -08:00
Ron Buckton and GitHub
f43cd0acca
Add RegExp indices and hasIndices ( #52085 )
...
* Add RegExp indices
* update --lib message
* newlines
* implement changes
* Fix failing tests
Thanks @xiBread!
2023-01-03 15:20:10 -05:00
Mateusz Burzyński and GitHub
31d1d63fc8
Infer fixed-size tuples from infer type parameters with extends clauses at variadic positions ( #51157 )
...
* Infer fixed-size tuples from infer type parameters with extends clauses at variadic positions
* Improve the fix to handle tuples with leading variadic elements
* Fixed indentation
* Infer rest element following a variadic element with a fixed-size constraint
* Infer rest element preceding a variadic element with a fixed-size constraint
* Rewrite the test to avoid accidental union reductions
2023-01-03 10:18:09 -08:00
Mateusz Burzyński and GitHub
e9cd2e14db
Allow forward references in computed properties of type declarations ( #50824 )
...
* Allow forward references in type declarations
* address PR feedback
2022-12-30 11:37:33 -08:00
Oleksandr T and GitHub
79244c578f
remove unused node flag ( #52052 )
2022-12-30 08:57:33 -08:00
Oleksandr T and GitHub
44152bc22e
fix(29648): Error message related to JSDoc for non-JSDoc syntax error ( #50793 )
...
* fix(29648): improve diagnostics of non-JSDoc syntax errors
* fix lint errors
* update tests
* change diagnostic type suggestion. fix QF for jsdoc nullable type
* move error handling from the parser to the checker
* change diagnostic message. remove speculative parsing
* update baseline
2022-12-29 16:50:57 -08:00
Oleksandr T and GitHub
ba393b6b9f
fix(51760): Nullish-coalescing assignment narrows type to assigned value ( #51767 )
...
* fix(51760): skip type guard errors for narrowed nullish-coalescing assignment
* update tests
2022-12-29 16:36:59 -08:00
Anders Hejlsberg and GitHub
acf854b636
Keep track of multiple current inference contexts ( #51978 )
...
* Keep track of multiple current inference contexts
* Add regression test
2022-12-22 07:52:49 -10:00
Oleksandr T and GitHub
e73a51d5d7
fix(51820): disallow using readonly and declare with auto-accessor ( #51824 )
2022-12-20 13:25:33 -08:00
Andrew Branch and GitHub
714d7341cf
--moduleResoltuion bunlder: Allow import assignment in ambient contexts ( #51971 )
2022-12-19 17:03:50 -08:00