angular/packages/compiler-cli/src/ngtsc
Kristiyan Kostadinov 16ff08ec70 fix(compiler): narrow the type of expressions in event listeners inside if blocks (#52069)
Since expressions in event listener are added inside of a callback, type narrowing won't apply to them anymore. These changes add the logic to create a guard expression that will re-narrow the expression in the callback.

Fixes #52052.

PR Close #52069
2023-10-10 09:47:47 -07:00
..
annotations refactor(compiler-cli): add debug info to components (#51919) 2023-10-09 15:57:03 -07:00
core refactor(compiler): clean up compatibility code for old TS versions (#52099) 2023-10-10 09:37:38 -07:00
cycles build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
diagnostics fix(compiler): add diagnostic for inaccessible deferred trigger (#51922) 2023-09-27 12:59:34 -07:00
docs feat(compiler): extract api for fn overloads and abtract classes (#52040) 2023-10-09 12:03:20 -07:00
entry_point build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
file_system build: skip simulated file system tests on Windows (#51738) 2023-09-12 12:56:27 -07:00
imports feat(core): implement new block syntax (#51891) 2023-09-26 09:10:04 -07:00
incremental refactor(compiler-cli): remove incrementalDriver on the compiler (#49869) 2023-04-17 14:54:53 +00:00
indexer refactor(compiler): implement template type checking for loop blocks (#51690) 2023-09-20 11:26:05 +02:00
logging build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
metadata build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
partial_evaluator refactor(compiler): clean up compatibility code for old TS versions (#52099) 2023-10-10 09:37:38 -07:00
perf feat(language-service): Implement outlining spans for control flow blocks (#52062) 2023-10-09 10:20:26 -07:00
program_driver refactor(compiler): clean up compatibility code for old TS versions (#52099) 2023-10-10 09:37:38 -07:00
reflection refactor(compiler): compute the list of dependencies for defer blocks (#51162) 2023-08-01 11:50:05 -07:00
resource refactor: update code to be ES2022 compliant (#49559) 2023-03-23 08:18:45 -07:00
scope refactor(compiler-cli): Add signals to internal directive metadata (#49981) 2023-04-25 15:39:18 -07:00
shims feat(compiler): drop support for TypeScript 4.8 (#49155) 2023-02-23 10:39:43 -08:00
sourcemaps build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
testing build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
transform refactor(compiler): drop regular imports when symbols can be defer-loaded (#51171) 2023-08-04 11:28:07 -04:00
translator refactor(compiler): introduce AST for outputting arrow functions (#51436) 2023-08-23 14:45:33 -07:00
typecheck fix(compiler): narrow the type of expressions in event listeners inside if blocks (#52069) 2023-10-10 09:47:47 -07:00
util refactor(compiler): drop regular imports when symbols can be defer-loaded (#51171) 2023-08-04 11:28:07 -04:00
xi18n refactor(compiler-cli): support xi18n in ngtsc (#42485) 2021-06-21 16:50:28 +00:00
program.ts feat(compiler): extract docs via exports (#51828) 2023-09-20 18:34:55 +02:00
tsc_plugin.ts refactor(compiler-cli): Export the interface PluginCompilerHost for 1p use. (#48874) 2023-02-02 09:44:18 -08:00