angular-cn/goldens/public-api/core
JoostK 85c7f7691e fix(common): infer correct type when `trackBy` is used in `ngFor` (#41995)
When a `trackBy` function is used that accepts a supertype of the iterated
array's type, the loop variable would undesirably be inferred as the supertype
instead of the array's item type. This commit adds an inferred type parameter
to `TrackByFunction` to allow an extra degree of freedom, enabling the
loop value to be inferred as the most narrow type.

Fixes #40125

PR Close #41995
2021-06-03 11:33:26 -07:00
..
testing refactor(core): add single type for injector token (#41580) 2021-04-22 10:47:12 -07:00
core.d.ts fix(common): infer correct type when `trackBy` is used in `ngFor` (#41995) 2021-06-03 11:33:26 -07:00
global_utils.d.ts feat(core): introduce getDirectiveMetadata global debugging utility (#41525) 2021-04-13 16:06:32 -07:00