From 61dc8aa18e7b4845934170148d9fdf50a7f1399a Mon Sep 17 00:00:00 2001 From: HartHerbert Date: Wed, 14 Dec 2016 02:49:46 +0100 Subject: [PATCH] fix(camera-preview): parameter size is optional (#871) Just added the '?' to the parameter (size) in the static takePicture(size?: CameraPreviewSize): void { } because the size is a optional parameter --- src/plugins/camera-preview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/camera-preview.ts b/src/plugins/camera-preview.ts index b6566b348..666bd744e 100644 --- a/src/plugins/camera-preview.ts +++ b/src/plugins/camera-preview.ts @@ -117,7 +117,7 @@ export class CameraPreview { @Cordova({ sync: true }) - static takePicture(size: CameraPreviewSize): void { } + static takePicture(size?: CameraPreviewSize): void { } /** * Register a callback function that receives the original picture and the image captured from the preview box.