Merge branch 'es6-docs'

This commit is contained in:
Ibby Hadeed 2017-03-24 15:18:03 -04:00
commit b6d0e3125d
2 changed files with 6 additions and 4 deletions

View File

@ -259,6 +259,7 @@ export function CordovaInstance(opts: any = {}) {
*/
export function CordovaProperty(target: any, key: string) {
Object.defineProperty(target, key, {
enumerable: true,
get: () => {
if (checkAvailability(target, key) === true) {
return getPlugin(target.constructor.getPluginRef())[key];
@ -282,6 +283,7 @@ export function CordovaProperty(target: any, key: string) {
*/
export function InstanceProperty(target: any, key: string) {
Object.defineProperty(target, key, {
enumerable: true,
get: function(){
return this._objectInstance[key];
},

View File

@ -57,7 +57,7 @@ export interface CameraPreviewPictureOptions {
*
* @usage
* ```typescript
* import { CameraPreview, PictureOptions, CameraPreviewOptions, CameraPreviewDimensions } from 'ionic-native';
* import { CameraPreview, PictureOptions, CameraPreviewOptions, CameraPreviewDimensions } from '@ionic-native/camera-preview';
*
* constructor(private cameraPreview: CameraPreview) { }
*
@ -211,7 +211,7 @@ export class CameraPreview {
/**
* Set the zoom (Android)
* @param zoom {number} Zoom value
* @param [zoom] {number} Zoom value
* @return {Promise<any>}
*/
@Cordova({
@ -223,7 +223,7 @@ export class CameraPreview {
/**
* Set the preview Size
* @param dimensions {CameraPreviewDimensions}
* @param [dimensions] {CameraPreviewDimensions}
* @return {Promise<any>}
*/
@Cordova({
@ -235,7 +235,7 @@ export class CameraPreview {
/**
* Set the flashmode
* @param flashMode {string} 'off' (iOS & Android), 'on' (iOS & Android), 'auto' (iOS & Android), 'torch' (Android)
* @param [flashMode] {string} 'off' (iOS & Android), 'on' (iOS & Android), 'auto' (iOS & Android), 'torch' (Android)
* @return {Promise<any>}
*/
@Cordova({