feat: add support for TypeScript 3.1 (#26151)

PR Close #26151
This commit is contained in:
Igor Minar
2018-09-27 16:47:19 -07:00
committed by Alex Rickabaugh
parent f455518d80
commit 9993c72335
22 changed files with 34 additions and 136 deletions

View File

@ -151,7 +151,7 @@ export class InertBodyHelper {
el.removeAttribute(attrName);
}
}
let childNode = el.firstChild;
let childNode = el.firstChild as Node | null;
while (childNode) {
if (childNode.nodeType === Node.ELEMENT_NODE) this.stripCustomNsAttrs(childNode as Element);
childNode = childNode.nextSibling;

View File

@ -116,10 +116,12 @@ function ngBackPatch_node_modules_libB_module_LibAModule() {
export const AppModuleFactory: NgModuleFactory<AppModule>&{patchedDeps: boolean} = {
moduleType: AppModule,
patchedDeps: false,
create(parentInjector: Injector | null): NgModuleRef<AppModule>{
this.patchedDeps && ngBackPatch_node_modules_libB_module() && (this.patchedDeps = true);
return details_elided;}
patchedDeps: false, create(parentInjector: Injector | null): NgModuleRef<AppModule>{
if (!this.patchedDeps) {
ngBackPatch_node_modules_libB_module();
this.patchedDeps = true;
} return details_elided;
}
};
// BEGIN FILE: src/app.ngfactory.ts