From c60c3b767143d18bdb445d57102dcd2126de44b8 Mon Sep 17 00:00:00 2001 From: Kessiler Date: Thu, 11 Aug 2016 08:29:14 -0300 Subject: [PATCH] fix(camera): camera options should be optional. Fixes #413 (#417) --- src/plugins/camera.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/camera.ts b/src/plugins/camera.ts index dd2ba5310..9f94df66c 100644 --- a/src/plugins/camera.ts +++ b/src/plugins/camera.ts @@ -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 { return; } + static getPicture(options?: CameraOptions): Promise { return; } /** * Remove intermediate image files that are kept in temporary storage after calling camera.getPicture.