angular-cn/packages/compiler-cli/test/ngtsc
Pete Bacon Darwin 4b70a4e905 feat(ivy): support NgModule metadata from calls that do not return ModuleWithProviders types (#27326)
Normally functions that return `ModuleWithProvider` objects should parameterize
the return type to include the type of `NgModule` that is being returned. For
example `forRoot(): ModuleWithProviders<RouterModule>`.

But in some cases, especially those generated by nccc, these functions to not
explicitly declare `ModuleWithProviders` as their return type. Instead they
return a "intersection" type, one of whose members is a type literal that
declares the `NgModule` type returned. For example:
`forRoot(): CustomType&{ngModule:RouterModule}`.

This commit changes the `NgModuleDecoratorHandler` so that it can extract
the `NgModule` type from either kind of declaration.

PR Close #27326
2018-12-20 11:58:50 -05:00
..
fake_core fix(ivy): deduplicate directives in component scopes (#27462) 2018-12-05 14:36:24 -08:00
BUILD.bazel test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags (#26471) 2018-10-23 08:57:42 -07:00
env.ts fix(ivy): add missing directoryExists() method to shim CompilerHost (#27470) 2018-12-05 10:46:51 -08:00
ngtsc_spec.ts feat(ivy): support NgModule metadata from calls that do not return ModuleWithProviders types (#27326) 2018-12-20 11:58:50 -05:00
template_typecheck_spec.ts test(ivy): implement tests for template type-checking (#26203) 2018-10-04 10:11:17 -07:00