build: upgrade to TypeScript 2.7 (#22669)
Fixes: #21571 PR Close #22669
This commit is contained in:

committed by
Kara Erickson

parent
a225b48482
commit
8449eb8d62
@ -1,7 +1,16 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
const {set, cd, sed} = require('shelljs');
|
||||
const path = require('path');
|
||||
const log = console.log;
|
||||
|
||||
console.log('===== about to run the postinstall.js script =====');
|
||||
log('===== about to run the postinstall.js script =====');
|
||||
// fail on first error
|
||||
set('-e');
|
||||
// print commands as being executed
|
||||
@ -12,8 +21,9 @@ cd(path.join(__dirname, '../'));
|
||||
// https://github.com/ReactiveX/rxjs/pull/3302
|
||||
// make node_modules/rxjs compilable with Typescript 2.7
|
||||
// remove when we update to rxjs v6
|
||||
console.log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7')
|
||||
sed('-i', "('response' in xhr)", "('response' in (xhr as any))", "node_modules/rxjs/src/observable/dom/AjaxObservable.ts")
|
||||
log('\n# patch: reactivex/rxjs#3302 make node_modules/rxjs compilable with Typescript 2.7');
|
||||
sed('-i', '(\'response\' in xhr)', '(\'response\' in (xhr as any))',
|
||||
'node_modules/rxjs/src/observable/dom/AjaxObservable.ts');
|
||||
|
||||
|
||||
console.log('===== finished running the postinstall.js script =====');
|
||||
log('===== finished running the postinstall.js script =====');
|
||||
|
@ -85,15 +85,21 @@ export declare const VERSION: Version;
|
||||
export declare const WORKER_APP_LOCATION_PROVIDERS: ({
|
||||
provide: typeof PlatformLocation;
|
||||
useClass: typeof WebWorkerPlatformLocation;
|
||||
useFactory?: undefined;
|
||||
multi?: undefined;
|
||||
deps?: undefined;
|
||||
} | {
|
||||
provide: InjectionToken<(() => void)[]>;
|
||||
useFactory: (platformLocation: WebWorkerPlatformLocation, zone: NgZone) => () => Promise<boolean>;
|
||||
useFactory: typeof appInitFnFactory;
|
||||
multi: boolean;
|
||||
deps: (typeof NgZone | typeof PlatformLocation)[];
|
||||
useClass?: undefined;
|
||||
} | {
|
||||
provide: InjectionToken<Promise<any>>;
|
||||
useFactory: (platformLocation: WebWorkerPlatformLocation) => Promise<any>;
|
||||
useFactory: typeof locationInitialized;
|
||||
deps: (typeof PlatformLocation)[];
|
||||
useClass?: undefined;
|
||||
multi?: undefined;
|
||||
})[];
|
||||
|
||||
/** @experimental */
|
||||
|
2
tools/public_api_guard/router/upgrade.d.ts
vendored
2
tools/public_api_guard/router/upgrade.d.ts
vendored
@ -2,7 +2,7 @@
|
||||
export declare const RouterUpgradeInitializer: {
|
||||
provide: InjectionToken<((compRef: ComponentRef<any>) => void)[]>;
|
||||
multi: boolean;
|
||||
useFactory: (ngUpgrade: UpgradeModule) => () => void;
|
||||
useFactory: typeof locationSyncBootstrapListener;
|
||||
deps: (typeof UpgradeModule)[];
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user