Skip to content

Commit faa8899

Browse files
author
vakrilov
committed
chore(cleanup): Remove unused imports
1 parent 8984e88 commit faa8899

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

nativescript-angular/http-client/http-client.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule, Optional, Inject, Injectable } from "@angular/core";
1+
import { NgModule } from "@angular/core";
22

33
// IMPORTant: Importing "@angular/common/http" for the first time overwrites the
44
// global.__extends function.

nativescript-angular/http-client/ns-http-backend.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Injectable } from "@angular/core";
22
import {
3-
HttpHandler, HttpRequest,
4-
HttpEvent, HttpEventType,
3+
HttpRequest, HttpEvent,
54
XhrFactory, HttpResponse,
65
HttpErrorResponse, HttpXhrBackend
76
} from "@angular/common/http";

nativescript-angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"rxjs": "^5.4.2",
6969
"tns-core-modules": "next",
7070
"tslint": "^5.5.0",
71-
"typescript": "^2.4.1",
71+
"typescript": "^2.5.1",
7272
"zone.js": "^0.8.12"
7373
}
7474
}

nativescript-angular/platform-common.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import {
2727
PAGE_FACTORY,
2828
PageFactory,
2929
defaultPageFactoryProvider,
30-
setRootPage,
31-
PageFactoryOptions
30+
setRootPage
3231
} from "./platform-providers";
3332

3433
import { start, setCssFileName } from "tns-core-modules/application";
@@ -43,6 +42,12 @@ export const onAfterLivesync = new EventEmitter<NgModuleRef<any>>();
4342
let lastBootstrappedModule: WeakRef<NgModuleRef<any>>;
4443
type BootstrapperAction = () => Promise<NgModuleRef<any>>;
4544

45+
// Work around a TS bug requiring an import of OpaqueToken without using it
46+
if ((<any>global).___TS_UNUSED) {
47+
(() => {
48+
return InjectionToken;
49+
})();
50+
}
4651
export interface AppOptions {
4752
bootInExistingPage?: boolean;
4853
cssFile?: string;

0 commit comments

Comments
 (0)