mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
phonegap: fixed definition errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Vendored
+1
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user