fix(ivy): correctly export all *Def symbols as private (#24862)

Previously, some of the *Def symbols were not exported or were exported
as public API. This commit ensures every definition type is in the
private export namespace.

PR Close #24862
This commit is contained in:
Alex Rickabaugh
2018-07-13 14:32:46 -07:00
committed by Victor Berchet
parent 9fd70c9715
commit d3594fc1c5
11 changed files with 14 additions and 21 deletions

View File

@ -86,10 +86,9 @@ describe('ApplicationRef bootstrap', () => {
providers: APPLICATION_MODULE_PROVIDERS
});
export function defineNgModule({bootstrap}: {bootstrap?: Type<any>[]}): NgModuleDef {
return {
bootstrap: bootstrap || [],
};
export function defineNgModule({bootstrap}: {bootstrap?: Type<any>[]}):
NgModuleDef<any, any, any, any> {
return ({ bootstrap: bootstrap || [], } as any);
}
/////////////////////////////////////////////////////////