angular/packages
Kristiyan Kostadinov 527bd778a7 fix(compiler-cli): infer type of event target for void elements (#62648)
Currently we infer the target of DOM events to be `EventTarget | null` which is consistent with the built-in types for `addEventListener`. This is due to the fact that users can dispatch custom events, or the event might've bubbled. However, this typing is also inconvenient for some other common use cases like `<input (input)="query($event.target.value)">`, because we don't have the ability to type cast in a template.

These changes aim to make some of the cases simpler by inferring the type of `$event.target` if the event is bound on a void element which guarantees that it couldn't have bubbled.

PR Close #62648
2025-07-16 12:40:25 +02:00
..
animations build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
benchpress build: migrate modules to use @rules_browsers protractor rules (#62342) 2025-06-27 22:27:08 +00:00
common fix(http): Add missing timeout and transferCache options to HttpClient (#62586) 2025-07-14 15:45:25 -07:00
compiler refactor(core): expose function to assert type of variables (#62648) 2025-07-16 12:40:25 +02:00
compiler-cli fix(compiler-cli): infer type of event target for void elements (#62648) 2025-07-16 12:40:25 +02:00
core refactor(core): expose function to assert type of variables (#62648) 2025-07-16 12:40:25 +02:00
docs/di
elements build: migrate adev to use packaged version of @angular/* packages (#62413) 2025-07-02 16:10:25 +00:00
examples build: use esbuild from aspect rules (#62568) 2025-07-10 13:45:15 -07:00
forms build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
language-service fix(compiler): more permissive parsing of @ characters (#62644) 2025-07-15 13:24:47 -07:00
localize build: use esbuild from aspect rules (#62568) 2025-07-10 13:45:15 -07:00
misc/angular-in-memory-web-api build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
platform-browser refactor(core): include DI path into cyclic dependency error message (#50902) 2025-07-10 10:35:12 -07:00
platform-browser-dynamic build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
platform-server fix(core): Ensure application remains unstable during bootstrap (#62631) 2025-07-15 07:52:36 -07:00
private/testing build: replace all ng_package with new rule from rules_angular (#61843) 2025-06-04 09:13:41 +00:00
router fix(router): handle errors from view transition readiness (#62535) 2025-07-14 11:39:56 -07:00
service-worker feat(core): support TypeScript 5.9 (#62541) 2025-07-14 14:04:58 -07:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade build: migrate to use web test runner rules (#62292) 2025-06-26 17:19:10 +00:00
zone.js build: lock file maintenance (#62494) 2025-07-07 18:17:08 +00:00
BUILD.bazel refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
circular-deps-test.conf.js build: remove circular deps goldens (#60021) 2025-02-19 21:01:31 +00:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt docs: update license year (#59883) 2025-03-04 19:36:47 +00:00
package.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update packages/core:{core,src} to ts_project (#61275) 2025-05-14 12:01:51 +00:00
tsconfig-build.json build: migrate to using new jasmine_test (#62131) 2025-06-19 10:06:27 +02:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(compiler): remove empty empty string suffix from interpolation instructions (#60066) 2025-03-10 16:31:34 -07:00
tsconfig.json refactor: use zone.js from npm instead of packages/zone.js throughout repo (#61977) 2025-06-10 12:02:03 -07:00
tsec-exemption.json
types.d.ts build: move private testing helpers outside platform-browser/testing (#61472) 2025-05-20 10:00:43 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT