mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix tslint errors.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { knownFolders } from "file-system"
|
||||
import {knownFolders} from "file-system"
|
||||
|
||||
export var debug = true;
|
||||
|
||||
@@ -17,7 +17,6 @@ export class Source {
|
||||
private _column: number;
|
||||
|
||||
private static _source: symbol = Symbol("source");
|
||||
private static _appRoot: string;
|
||||
|
||||
constructor(uri: string, line: number, column: number) {
|
||||
ensureAppRootPath();
|
||||
@@ -87,4 +86,4 @@ export class SourceError extends ScopeError {
|
||||
}
|
||||
|
||||
get source() { return this._source; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import dts = require("utils/utils");
|
||||
import common = require("./utils-common");
|
||||
import colorModule = require("color");
|
||||
import {Color} from "color";
|
||||
import enums = require("ui/enums");
|
||||
import * as typesModule from "utils/types";
|
||||
import * as fsModule from "file-system";
|
||||
|
||||
global.moduleMerge(common, exports);
|
||||
@@ -178,7 +177,7 @@ export module ios {
|
||||
}
|
||||
}
|
||||
|
||||
export function getColor(uiColor: UIColor): colorModule.Color {
|
||||
export function getColor(uiColor: UIColor): Color {
|
||||
var redRef = new interop.Reference<number>();
|
||||
var greenRef = new interop.Reference<number>();
|
||||
var blueRef = new interop.Reference<number>();
|
||||
@@ -190,7 +189,7 @@ export module ios {
|
||||
var blue = blueRef.value * 255;
|
||||
var alpha = alphaRef.value * 255;
|
||||
|
||||
return new colorModule.Color(alpha, red, green, blue);
|
||||
return new Color(alpha, red, green, blue);
|
||||
}
|
||||
|
||||
export function isLandscape(): boolean {
|
||||
@@ -255,4 +254,4 @@ class UIDocumentInteractionControllerDelegateImpl extends NSObject implements UI
|
||||
public documentInteractionControllerRectForPreview(controller: UIDocumentInteractionController): CGRect {
|
||||
return this.getViewController().view.frame;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user