Commit Graph
16840 Commits
Author SHA1 Message Date
Oleksandr T 2378c0b65e fix(53242): Wrong error message when defined abstract property in non-abstract class (#53251) 2023-03-14 11:10:40 -07:00
Sheetal Nandi 46d70d79cd When resolving type reference from custom typeRoot localtion use mangled scope name if the package is scoped name (#53166) 2023-03-10 09:58:41 -08:00
Jake Bailey 42d23390e2 Remove declares in sys, core, evaluatorImpl (#53176) 2023-03-10 09:57:32 -08:00
Mateusz Burzyński e7753831e9 Filter out non-array types when contextually typing array literal elements (#52589) 2023-03-10 09:34:03 -08:00
Jake Bailey ddcbd9ffbd Remove old references to Node v4, small cleanup of node version stuff (#53174) 2023-03-09 14:32:15 -08:00
Oleksandr T 2ab9e7edd9 fix(53011): Illegal declaration file can be emitted (duplicate parameter names) when spreading tuples into parameter positions (#53028) 2023-03-09 09:47:49 -08:00
Mateusz Burzyński d681520a14 Fixed array expression spreads into variadic const calls (#52845) 2023-03-08 14:45:58 -08:00
navya9singh 74a37f8203 Fix(49702): LS crash in binder for module in a JS file (#52537) 2023-03-08 09:42:18 -08:00
Zzzen 0ce551752d check computed property names in overloads (#52427) 2023-03-08 09:20:33 -08:00
Mateusz Burzyński 6e4f0a430e Fix string completions depending on contextual signatures (#52717) 2023-03-07 16:42:16 -08: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
jihndai 4af97b0572 Fix compound assignments for properties with different getter & setter types (#50431) 2023-03-07 16:02:16 -08:00
Nathan Shively-Sanders d747277edf Skip derived override assignment declarations (#52603) 2023-03-07 15:40:43 -08:00
Mateusz Burzyński 88adf8014b Make special intersections order-independent (#52782) 2023-03-07 15:39:14 -08:00
Nathan Shively-Sanders ff1e08f859 Rename scanner token methods (#53078) 2023-03-07 13:54:44 -08:00
Jake Bailey 3236ac9336 Add NullKeyword to isPartOfTypeNode, mirroring UndefinedKeyword (#53025) 2023-03-07 12:03:09 -08:00
Oleksandr T 0e34f187c8 fix(52443): Regression: constructor accessor not allowed on plain objects (#52452) 2023-03-07 11:22:09 -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
Mateusz Burzyński 4ee8b0f315 Report excess property errors on object literal names (#53129) 2023-03-07 09:31:31 -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
Mateusz Burzyński 967911c389 Report assignability errors on the return/yield keywords (#52943) 2023-03-06 16:50:47 -08:00
Jake Bailey 79ef86fcac Mark binder as pure to tree shake in typingsInstaller (#53107) 2023-03-06 12:06:55 -08:00
Anders Hejlsberg 6823559fa9 Check for strict subtypes and then regular subtypes in getNarrowedType (#52984) 2023-03-03 15:56:17 -08:00
Jake Bailey 40cd0de05b Remove perf_hooks patch needed for old versions of Node (#53058) 2023-03-02 14:24:26 -08:00
Mateusz Burzyński 6b71882c4c Fixed spreading iterables into arguments list directly into rest-only signatures (#52838) 2023-03-02 09:09:54 -08:00
Wesley Wigham 958487beda Mark indexed access object type comparisons as unreliable (#52106) 2023-03-01 13:07:44 -08:00
Mateusz Burzyński fc756ebc17 Use missingType instead of undefinedType for optional methods under exactOptionalPropertyTypes (#52519) 2023-03-01 11:25:39 -08:00
Mateusz Burzyński 080f9c1c3f Fixed false positive errors in empty optional binding patterns in declaration signatures (#50816) 2023-03-01 10:58:37 -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
Mateusz Burzyński 58ee54c2aa Resolve contextual computed properties with non-bindable names (#51915) 2023-03-01 10:12:18 -08:00
brendaHuangandBrenda Huang 1b692dec96 convert JSDoc typedef to type, issue 50644 (#51430)
Co-authored-by: Brenda Huang <brehuang@linkedin.com>
2023-03-01 09:43:08 -08:00
Mateusz Burzyński 02885b1a2e Fixed an issue with top function type being callable with no arguments (#52387) 2023-03-01 09:35:36 -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 a0374077dd Remove createUnderscoreEscapedMultiMap (#53029) 2023-02-28 13:21:20 -08:00
Anders Hejlsberg 74814345ce Omit intersection property check when source includes target (#53012) 2023-02-28 06:57:10 -08:00
Daniel Rosenwasser 7a0061aa96 Remove most direct uses of factory from src/compilers/transformers (#52957) 2023-02-27 11:05:41 -08:00
Jake Bailey 6fe711f85a Remove unused eslint-disable directives (#52987) 2023-02-27 11:01:37 -08:00
Daniel Rosenwasser 4374ffd628 Bump version to 5.1, fix 'ignoreDeprecations', and update baselines. (#52975) 2023-02-26 20:56:07 -08:00
Andrew Branch e9868e96e8 --moduleResolution bundler: Require ESM for module and remove node from hard-coded conditions (#52940) 2023-02-24 15:49:08 -08:00
Daniel Rosenwasser 3f7bf69ddf Destructure common factory methods in the parser. (#52920) 2023-02-24 12:52:30 -08:00
Ron Buckton 8becdf2b40 Fix emit for nested object rest in assignment pattern (#52922) 2023-02-22 20:41:09 -05:00
Jake Bailey 718e63b9c9 Add links to github above big var blocks (#52925) 2023-02-22 17:01:15 -08:00
Jake Bailey b39f10f651 Switch to var in emitter, writer, printer (#52906) 2023-02-22 11:45:51 -08:00
Jake Bailey 3267c76777 Fix debug assert for type assertions / JSX (#52919) 2023-02-22 11:05:50 -08:00
Jake Bailey ef79b42b57 Don't emit binding pattern pattern / optional parameter error when an initializer is present (#52880) 2023-02-21 18:05:02 -08:00
Daniel Rosenwasser 27376f1577 Swap closure state in the type-checker to var to avoid TDZ checks. (#52835) 2023-02-21 17:35:55 -08:00
Jake Bailey c5e4f0075d Switch to var in binder for top level variables (#52903) 2023-02-21 17:32:32 -08:00