angular-cn/packages/core/schematics
Adam Plumer 56731f624a feat(core): add ModuleWithProviders generic type migration (#33217)
Static methods that return a type of ModuleWithProviders currently
do not have to specify a type because the generic falls back to any.
This is problematic because the type of the actual module being
returned is not present in the type information.

Since Ivy uses d.ts files exclusively for downstream packages
(rather than metadata.json files, for example), we no longer have
the type of the actual module being created.

For this reason, a generic type should be added for
ModuleWithProviders that specifies the module type. This will be
required for all users in v10, but will only be necessary for
users of Ivy in v9.

PR Close #33217
2019-10-21 15:53:28 -04:00
..
migrations feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
test feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
utils refactor(core): add `createMigrationCompilerHost` (#32827) 2019-10-04 11:45:35 -07:00
BUILD.bazel feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
migrations.json feat(core): add ModuleWithProviders generic type migration (#33217) 2019-10-21 15:53:28 -04:00
tsconfig.json feat(core): add undecorated classes migration schematic (#31650) 2019-08-13 14:40:52 -07:00