phonegap: fixed definition errors

This commit is contained in:
Igor Oleinikov
2013-12-19 10:47:40 +04:00
parent 32797d6a56
commit 6128eab489
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -318,7 +318,7 @@ function test_file() {
var reader = new FileReader();
reader.onloadend = function (evt) {
console.log("Read as data URL");
console.log(evt.target.result);
console.log((<any>evt.target).result);
};
reader.readAsDataURL(file);
}
@@ -326,7 +326,7 @@ function test_file() {
var reader = new FileReader();
reader.onloadend = function (evt) {
console.log("Read as text");
console.log(evt.target.result);
console.log((<any>evt.target).result);
};
reader.readAsText(file);
}
+1 -5
View File
@@ -3,10 +3,6 @@
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface EventTarget {
result: any;
}
interface GeolocationError {
code: number;
message: string;
@@ -54,7 +50,7 @@ interface CameraOptions {
mediaType?: number;
correctOrientation?: boolean;
saveToPhotoAlbum?: boolean;
popoverOptions?: number;
popoverOptions?: CameraPopoverOptions;
}
interface CameraPictureSourceTypeObject {