Fix function definitions in flowjs.d.ts (#8942)

* Fix function definitions in flowjs.d.ts

* Update flowjs-tests.ts
This commit is contained in:
Eugene Cheung
2016-04-12 11:37:44 -04:00
committed by Masahiro Wakame
parent c00b5a1d9e
commit cb2536e1af
2 changed files with 10 additions and 10 deletions

View File

@@ -71,8 +71,8 @@ flowFile.cancel();
flowFile.retry();
flowFile.bootstrap();
bool = flowFile.isUploading();
bool = flowFile.isComplete;
num = flowFile.sizeUploaded;
num = flowFile.timeRemaining;
str = flowFile.getExtension;
str = flowFile.getType;
bool = flowFile.isComplete();
num = flowFile.sizeUploaded();
num = flowFile.timeRemaining();
str = flowFile.getExtension();
str = flowFile.getType();

10
flowjs/flowjs.d.ts vendored
View File

@@ -76,10 +76,10 @@ declare namespace flowjs {
retry(): void;
bootstrap(): void;
isUploading(): boolean;
isComplete: boolean;
sizeUploaded: number;
timeRemaining: number;
getExtension: string;
getType: string;
isComplete(): boolean;
sizeUploaded(): number;
timeRemaining(): number;
getExtension(): string;
getType(): string;
}
}