chore(deps): use angular2 0.44 and ensure noImplicitAny:true builds

This commit is contained in:
Dmitriy Schekhovtsov
2015-10-21 13:21:52 +03:00
parent 443c778d0d
commit 61bbb9d3b5
11 changed files with 127 additions and 114 deletions

View File

@@ -1,4 +1,4 @@
function isElement(node) {
function isElement(node:any) {
return !!(node && (node.nodeName || node.prop && node.attr && node.find));
}
@@ -13,17 +13,17 @@ export class FileLikeObject {
let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;
let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';
let method = '_createFrom' + postfix;
this[method](fakePathOrObject);
(<any>this)[method](fakePathOrObject);
}
public _createFromFakePath(path) {
public _createFromFakePath(path:string) {
this.lastModifiedDate = null;
this.size = null;
this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();
this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\') + 2);
}
public _createFromObject(object) {
public _createFromObject(object:{size: number, type: string, name: string}) {
// this.lastModifiedDate = copy(object.lastModifiedDate);
this.size = object.size;
this.type = object.type;