chore(deps): use angular2 0.44 and ensure noImplicitAny:true builds
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user