Skip to content

Commit

Permalink
fix(camera-preview): parameter size is optional (#871)
Browse files Browse the repository at this point in the history
Just added the '?' to the parameter (size) in the static takePicture(size?: CameraPreviewSize): void { } because the size is a optional parameter
  • Loading branch information
HartHerbert authored and ihadeed committed Dec 14, 2016
1 parent c3f92e9 commit 61dc8aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/camera-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 61dc8aa

Please sign in to comment.