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

View File

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