From be0dc3dac4a1df9c788f973f7b64a401441e65a2 Mon Sep 17 00:00:00 2001 From: Brad Mallow Date: Fri, 31 Aug 2018 05:21:07 -0700 Subject: [PATCH] fix(open-native-settings): allow supported input (#2666) * allow supported input * Update index.ts --- .../plugins/open-native-settings/index.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/@ionic-native/plugins/open-native-settings/index.ts b/src/@ionic-native/plugins/open-native-settings/index.ts index 2d5e9c4ff..a58bdf539 100644 --- a/src/@ionic-native/plugins/open-native-settings/index.ts +++ b/src/@ionic-native/plugins/open-native-settings/index.ts @@ -1,11 +1,11 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * @name Open Native Settings * @description - * Plugin to open native screens of iOS/android settings - * @usage + * Plugin to open native screens of iOS/android settings + * @usage * You can open any of these settings: * ``` * "about", // ios @@ -78,7 +78,7 @@ import { Injectable } from '@angular/core'; "wifi_ip", // android "wifi", // ios, android "wireless" // android - ``` + ``` * ```typescript * import { OpenNativeSettings } from '@ionic-native/open-native-settings'; * @@ -99,13 +99,13 @@ import { Injectable } from '@angular/core'; }) @Injectable() export class OpenNativeSettings extends IonicNativePlugin { - /** * Opens a setting dialog - * @param setting {string} setting name + * @param setting {string|array} setting name * @return {Promise} */ @Cordova() - open(setting: string): Promise { return; } - + open(setting: string | [string, boolean]): Promise { + return; + } }