angular-cn/packages/compiler-cli/test/ngtsc
Alex Rickabaugh 79141f4424 fix(ivy): generate default 'any' types for type ctor generic params (#30094)
ngtsc generates type constructors which infer the type of a directive based
on its inputs. Previously, a bug existed where this inference would fail in
the case of 'any' input values. For example, the inference of NgForOf fails
when an 'any' is provided, as it causes TypeScript to attempt to solve:

T[] = any

In this case, T gets inferred as {}, the empty object type, which is not
desirable.

The fix is to assign generic types in type constructors a default type of
'any', which TypeScript uses instead of {} when inference fails.

PR Close #30094
2019-04-24 17:10:21 -07:00
..
fake_core feat(ivy): support for template type-checking pipe bindings (#29698) 2019-04-19 11:15:25 -07:00
BUILD.bazel build(bazel): back out of @bazel/jasmine 0.27.7 with shard count (#29444) 2019-03-21 09:59:13 -07:00
env.ts feat(ivy): introduce a flag to control template type-checking for Ivy (#29698) 2019-04-19 11:15:25 -07:00
incremental_spec.ts fix(ivy): don't reuse a ts.Program more than once in ngtsc (#30090) 2019-04-24 11:41:21 -07:00
ngtsc_spec.ts fix(ivy): support module.id as @NgModule's "id" field value (#30040) 2019-04-23 14:50:58 -07:00
scope_spec.ts refactor(ivy): use ɵɵ instead of Δ for now (#29850) 2019-04-11 16:27:56 -07:00
sourcemap_utils.ts feat(ivy): add source mappings to compiled Angular templates (#28055) 2019-02-12 20:58:28 -08:00
template_mapping_spec.ts feat(ivy): generate ɵɵpropertyInterpolateX instructions (#30008) 2019-04-22 17:10:36 -07:00
template_typecheck_spec.ts fix(ivy): generate default 'any' types for type ctor generic params (#30094) 2019-04-24 17:10:21 -07:00