Commit Graph
17115 Commits
Author SHA1 Message Date
Wesley WighamandGitHub ffec968d79 Don't track private symbol roots in other files during js declaration emit (#55390) 2023-08-16 14:13:45 -07:00
Mateusz BurzyńskiandGitHub cac899d44d Widen widening literal types through compound-like assignments (#52493) 2023-08-15 16:53:11 -07:00
Mateusz BurzyńskiandGitHub b8b0d26cb9 Display write type for property accesses in write locations (#54777) 2023-08-15 12:01:21 -07:00
Mateusz BurzyńskiandGitHub 8863e2f57a Discriminate contextual types using shorthand properties (#55151) 2023-08-15 08:58:59 -07:00
Jake BaileyandGitHub defb504be6 Remove allowComplexConstraintInference in inferTypes (#54815) 2023-08-15 08:54:21 -07:00
Jake BaileyandGitHub f37d2ad669 Prevent detached diagnostics from running off the end of the file (#55381) 2023-08-15 08:29:36 -07:00
Sheetal NandiandGitHub 9261ca7a13 Share redirects cache key calculation between multiple caches used for module resolution and type reference directive (#55376) 2023-08-14 18:46:55 -07:00
Mateusz BurzyńskiandGitHub 16dab6d5d6 Preserve input key style of computed properties in declaration emit (#55298) 2023-08-14 13:13:42 -07:00
38553696e2 Fixed hasInvalidEscape implementation (#55373)
Co-authored-by: Damien Engels <engels@google.com>
2023-08-14 13:13:32 -07:00
Jake BaileyandGitHub 3b43d841d1 Enable eslint rules prefer-rest-params and prefer-spread (#55181) 2023-08-11 15:07:06 -07:00
Mateusz BurzyńskiandGitHub 28cd1fbd13 Allow intersections to be used as valid types for template literal placeholders (#54188) 2023-08-10 12:50:21 -07:00
cd391b066b chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Mateusz BurzyńskiandGitHub 2be814d927 Fixed contextual types of optional properties with exactOptionalPropertyTypes (#55177) 2023-08-08 14:42:50 -07:00
Mateusz BurzyńskiandGitHub ad7881685a Bring comments for InferenceFlags up to date (#55191) 2023-08-08 14:39:31 -07:00
Mateusz BurzyńskiandGitHub f0c3c3f6ea Disallow numeric literals with negative numbers (#55268) 2023-08-07 19:03:56 -04:00
Daniel Rosenwasser c395d17a32 Bump version to 5.3. 2023-08-07 22:51:43 +00:00
Ryan CavanaughandGitHub 9a771d54e8 Skip parent error when reporting excess property checks (#55152) 2023-08-07 13:31:23 -07:00
Mateusz BurzyńskiandGitHub 5ea2952ae5 Resolve JSX intrinsic elements to index signature symbols (#55245) 2023-08-07 11:02:23 -07:00
Ron BucktonandGitHub 8fc8c95830 Decorators normative updates (#55276) 2023-08-04 20:36:52 -04:00
Ron BucktonandGitHub b1c4dc475c Fix class name references (#55262) 2023-08-04 20:36:26 -04:00
Jake BaileyandGitHub 607d96f6df Improve performance of maybe stack in recursiveTypeRelatedTo (#55224) 2023-08-03 15:53:30 -07:00
Andrew BranchandGitHub 36ac4eb700 Fix reference marking of values merged with unresolvable type-only imports (#54799) 2023-08-03 11:09:50 -07:00
Mateusz BurzyńskiandGitHub 3a7a4d4b51 Error on shadowed var declarations without initializers (#55228) 2023-08-03 10:56:08 -07:00
Mateusz BurzyńskiandGitHub 1481750043 Correctly error on enum member values referring to identifiers shadowing Infinity and NaN (#55018) 2023-08-02 15:55:55 -07:00
Oleksandr TandGitHub 30fe6ada02 fix(55227): useUnknownInCatchVariables sets default value differently to other strict commandline options (#55230) 2023-08-02 11:32:46 -07:00
Mateusz BurzyńskiandGitHub defe33afa1 Do not offer completions for default module member symbol (#55231) 2023-08-01 14:52:40 -07:00
6c942fa2c9 Wrap inline negative const enum with parens (#55065)
Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
2023-07-31 16:33:51 -07:00
Jake BaileyandGitHub 6a96b9767e Enable eslint rule no-useless-escape (#55138) 2023-07-28 16:02:38 -07:00
ZzzenandGitHub 23eabea067 fix use-before-init error when targeting ES2022 (#55028) 2023-07-28 16:02:09 -07:00
Mateusz BurzyńskiandGitHub 6037cf5db8 Provide member completions after dot in type locations using typeof (#54486) 2023-07-28 15:59:52 -07:00
Mateusz BurzyńskiandGitHub 4320104404 Do not include undefined in indexed access on tuple types within range of total fixed elements (#54558) 2023-07-28 15:59:31 -07:00
Jake BaileyandGitHub a6df6c04d5 Enable @typescript-eslint/ban-types (#55133) 2023-07-27 15:58:17 -07:00
Anders HejlsbergandGitHub c69f4476af Handle composite signatures in isResolvingReturnTypeOfSignature (#55165) 2023-07-26 15:22:58 -07:00
Anders HejlsbergandGitHub cbf3c63ef3 Revert overly permissive indexed access constraints (#54845) 2023-07-26 07:02:40 -07:00
Oleksandr TandGitHub 9b4aa3605d fix(45901): Error 1064 should apply to @callback definitions in the same way as @param, but doesn't (#54625) 2023-07-25 10:17:53 -07:00
Andrew BranchandGitHub 2170e6c6cc Proposal: Always allow type-only imports to reference .ts extensions (#54746) 2023-07-24 16:12:38 -07:00
Jake BaileyandGitHub d63af29eaf Triage and fix some eslint rules (#55136) 2023-07-24 13:53:12 -07:00
Andrew BranchandGitHub fac24ae4f7 Export declarations exporting aliases make the namespace instantiated (#54816) 2023-07-24 12:00:06 -07:00
Wesley WighamandGitHub 970733653c Declaration emit for inlined mapped types preserves modifier-preserving behavior (#55054) 2023-07-24 11:57:36 -07:00
Kyℓe HenselandGitHub a86be554ab allow a colon directly after @ts-check/nocheck (#54893) 2023-07-21 09:16:31 -07:00
Maria José SolanoandGitHub 97310107d0 Interactable parameter inlay hints (#54734) 2023-07-20 14:29:51 -07:00
Oleksandr TandGitHub 2136bef652 fix(54694): Class incorrectly implements interface generated with template string literal mapped type (#54715) 2023-07-20 13:51:32 -07:00
Mateusz BurzyńskiandGitHub 5128e06a9d Fixed expando functions with symbol-only properties (#54726) 2023-07-20 13:20:47 -07:00
2623fe7049 Fixed false positive syntax errors with in inside for (#54801)
Co-authored-by: Evan Wallace <evan.exe@gmail.com>
2023-07-20 12:13:44 -07:00
stragerandGitHub e607c8ed81 fix(54760): Report error for 'declare type' followed by newline (#54761) 2023-07-20 12:13:08 -07:00
Mateusz BurzyńskiandGitHub ec48ce89da Fixed expando functions with nullish properties (#54728) 2023-07-20 07:55:35 -07:00
Ron BucktonandGitHub 97ef321fa0 Fix export of enum with same-named member (#55070) 2023-07-19 15:52:19 -04:00
Mateusz BurzyńskiandGitHub 8f96638692 Fixed looking up assigned dynamic names on expando function expressions (#54873) 2023-07-19 09:54:25 -07:00
Mateusz BurzyńskiandGitHub adf5e8443b Grab the left type when narrowing by in operator lazily (#54795) 2023-07-19 10:46:19 -04:00
Oleksandr TandGitHub ef0422b40f fix(54872): Have createUnionOfSignaturesForOverloadFailure() combine @deprecated tags properly (#54945) 2023-07-18 16:42:04 -07:00