Skip to content

Commit

Permalink
fix(camera): camera options should be optional. Fixes #413 (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
kessiler authored and ihadeed committed Aug 11, 2016
1 parent 154c029 commit c60c3b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ export class Camera {

/**
* Take a picture or video, or load one from the library.
* @param {CameraOptions} options Options that you want to pass to the camera. Encoding type, quality, etc.
* @param {CameraOptions?} options Options that you want to pass to the camera. Encoding type, quality, etc. Optional
* @return {Promise} Returns a Promise that resolves with Base64 encoding of the image data, or the image file URI, depending on cameraOptions, otherwise rejects with an error.
*/
@Cordova({
callbackOrder: 'reverse'
})
static getPicture(options: CameraOptions): Promise<any> { return; }
static getPicture(options?: CameraOptions): Promise<any> { return; }

/**
* Remove intermediate image files that are kept in temporary storage after calling camera.getPicture.
Expand Down

0 comments on commit c60c3b7

Please sign in to comment.