Daniel Rosenwasser
fc1beb0b30
Revert "feat(7411): JSX namespaced attribute syntax not supported ( #47356 )"
...
This reverts commit 0c5be02dcc .
2023-04-15 13:39:23 -07:00
Oleksandr T
0c5be02dcc
feat(7411): JSX namespaced attribute syntax not supported ( #47356 )
2023-04-14 16:58:49 -07:00
Anders Hejlsberg
e49db97f97
Exclude parameters of non-inferrable signatures from inference ( #53756 )
2023-04-14 12:44:37 -07:00
Ryan Cavanaugh
c89f87f66a
Detect malformed UTF-8 files and refuse to engage further ( #53667 )
2023-04-07 12:51:47 -07:00
Jake Bailey
3efcfcb70c
Cache getConstraintOfDistributiveConditionalType ( #53358 )
2023-03-27 14:12:06 -07:00
形素叢集・ぐらふぃーむ
c2dc2fd9b9
fix(396): (Dis)allow Octal and Bad Escape Sequences in String and (Tagged) Template Literals ( #51837 )
2023-03-24 16:15:50 -07:00
Jake Bailey
79a414bb5e
Consistently use '...args' for diagnostic args ( #53193 )
2023-03-20 12:53:09 -07:00
Sheetal Nandi
7a8238d88d
Refactor config file parsing such that json and jsonSourceFile api use same paths ( #53331 )
2023-03-20 12:00:08 -07:00
Jake Bailey
716b592e55
Revert fix for intersections in template literals, fix differently ( #52836 )
2023-03-19 19:48:32 -07:00
Anders Hejlsberg
9b7f291a33
Improve contextual typing of ending tuple elements ( #53036 )
2023-03-19 08:13:03 -07:00
Anders Hejlsberg
a70c4095db
Fast path for negative case when relating to unions of primtives ( #53192 )
2023-03-17 08:10:48 -07:00
Wesley Wigham
2b9d792828
Fix #33569 - Enable declaration emit for late-bound function members ( #53034 )
2023-03-15 10:20:35 -07:00
Anders Hejlsberg
9769421a63
Defer resolution of indexed access types with reducible object types ( #53098 )
2023-03-14 14:15:32 -07:00
Mateusz Burzyński
f555ad73db
Fix property completion in unions of object types and string mappings ( #52767 )
2023-03-07 16:36:37 -08:00
Nathan Shively-Sanders
137c461bd0
Scan bigger/fewer jsdoc tokens ( #53081 )
2023-03-07 16:32:04 -08:00
Andrew Branch
8458a61007
Make ModuleResolutionKind.Node10 change backward-compatible ( #53139 )
2023-03-07 11:20:53 -08:00
Jake Bailey
868331f2be
Fix deprecations, improve messaging ( #52993 )
2023-03-07 09:39:45 -08:00
5e898eb63d
Expose getStringLiteralType and getNumberLiteralType on the TypeChecker, plus remove /** @internal */ from several useful methods. ( #52473 )
...
Co-authored-by: Stephen Stchur <stchur@microsoft.com >
Co-authored-by: Andrew Branch <andrew@wheream.io >
2023-03-07 08:41:55 -08:00
Sheetal Nandi
9c5b09cd21
Updates to type reference directive resolution and module resolution when failed ( #51715 )
2023-03-01 10:57:47 -08:00
Jake Bailey
6b75ce23ce
Completely remove Push type ( #52133 )
2023-03-01 09:34:59 -08:00
Jake Bailey
ca1cf3dd85
Deprecate UnderscoreEscapedMap and remove internal uses ( #53032 )
2023-02-28 16:55:29 -08:00
Jake Bailey
6fe711f85a
Remove unused eslint-disable directives ( #52987 )
2023-02-27 11:01:37 -08:00
Jake Bailey
e88fe15d68
Remove ts namespace import from checker ( #52890 )
2023-02-21 10:14:26 -08:00
Anders Hejlsberg
5c92af1dcc
Fix contextual typing for post-spread tuple elements ( #52769 )
2023-02-18 07:35:24 -10:00
Oleksandr T
bbb98cf797
fix(52664): Assertion failure on completions for derived class with computed base property name ( #52673 )
2023-02-17 17:36:52 -08:00
Jake Bailey
8cc216af03
Ensure parameters are in scope when converting parameter/return types to type nodes ( #49627 )
2023-02-17 16:46:03 -08:00
Ron Buckton
55eff14353
Fix crash in extract type and generate get/set refactors ( #52803 )
2023-02-16 16:15:54 -05:00
Anders Hejlsberg
7d00bb078d
Widening and non-widening computed enum types ( #52542 )
2023-02-14 16:25:46 -08:00
Tobias S
df6b9e5754
fix property completion in unions of object types and template literal types ( #52196 )
2023-02-14 10:50:53 -08:00
Jake Bailey
5b71f59450
Fix spurious circularity caused by removeOptionalityFromDeclaredType, cache result ( #52696 )
2023-02-13 17:55:12 -05:00
Vitaly and Andrew Branch
c06711da1b
Handle literal string union complete pattern for JSX attribute snippets (<input type />) ( #52562 )
...
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com >
2023-02-03 15:40:00 -08:00
Jake Bailey
9ee33156f5
Make getTypeOfSymbol, isArrayType, isTupleType public on TypeChecker ( #52467 )
2023-02-01 19:16:38 -08:00
Anders Hejlsberg
d656487fca
Permit instantiation expressions in typeof import(...) ( #52532 )
2023-02-01 09:09:55 -08:00
ff92ab0ac9
Change default newLine, forceConsistentCasingInFileNames ( #52298 )
...
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com >
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com >
2023-01-20 17:20:26 -08:00
Sheetal Nandi
a097d55f81
Remove long deprecated typingOptions and enableAutoDiscovery ( #52339 )
2023-01-20 15:39:57 -08:00
Sheetal Nandi
e474b3df69
Mark APIs related to prepend option deprecated ( #52344 )
2023-01-20 15:25:19 -08:00
Sheetal Nandi
d76f3612c1
More removals of long deprecated APIs ( #52343 )
2023-01-20 15:25:06 -08:00
Andrew Branch
f576398194
Support export type * ( #52217 )
2023-01-20 14:24:48 -08:00
Sheetal Nandi
e5515164eb
Remove older deprecated APIs ( #52338 )
2023-01-20 12:55:04 -08:00
Andrew Branch
cfe1842adf
Add verbatimModuleSyntax, deprecate importsNotUsedAsValues and preserveValueImports ( #52203 )
2023-01-19 16:56:30 -08:00
Ron Buckton
5b18979697
Implement the Stage 3 Decorators Proposal ( #50820 )
2023-01-19 17:54:12 -05:00
Ron Buckton
20182cf848
Organize imports collation ( #52115 )
2023-01-19 17:53:51 -05:00
Jake Bailey
22b362ceac
Enable strictFunctionTypes ( #49929 )
2023-01-17 17:20:51 -08:00
Oleksandr T
9c9d4b029d
feat(51086): satisfies support in JSDoc ( #51753 )
2023-01-17 10:22:22 -08:00
Andrew Branch
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
9cdba994ac
Remove some properties from Identifier ( #52170 )
2023-01-12 17:20:12 -05:00
Wesley Wigham
89e928e8b4
Add --allowArbitraryExtensions, a flag for allowing arbitrary extensions on import paths ( #51435 )
2023-01-09 17:12:42 -08:00
Oleksandr T
79244c578f
remove unused node flag ( #52052 )
2022-12-30 08:57:33 -08:00
Oleksandr T
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
Anders Hejlsberg
fede84e85b
const modifier on type parameters (#51865 )
...
* `const` modifier on type parameters + revised contextual type logic
* Accept new baselines
* Fix modifier checking
* Add tests
* Cache isConstTypeVariable check
* Revert "Cache isConstTypeVariable check"
This reverts commit f8fd1fd29f .
* Fewer isConstTypeParameterContext checks
* Pay attention to cached `undefined` contextual type
* Allow `const` modifier in more places + properly print back
* Also permit `const` in method signature type parameters
* Fix parsing of `const` modifier in array expression type parameters
* Accept new baselines
* Remove unused properties from NodeLinks
* Rename `permitInvalidConstAsModifier` to `permitConstAsModifier`
2022-12-16 13:47:10 -08:00