fix(app-preferences): value can be any type (#1498)

* refactor(AppPreferences): changed input type

fix #1334

* Update index.ts
This commit is contained in:
Daniel Sogl 2017-05-09 23:33:47 +02:00 committed by Ibby Hadeed
parent 65a8095e5f
commit c7111a3117

View File

@ -47,13 +47,13 @@ export class AppPreferences extends IonicNativePlugin {
* *
* @param {string} dict Dictionary for key (OPTIONAL) * @param {string} dict Dictionary for key (OPTIONAL)
* @param {string} key Key * @param {string} key Key
* @param {string} value Value * @param {any} value Value
* @return {Promise<any>} Returns a promise * @return {Promise<any>} Returns a promise
*/ */
@Cordova({ @Cordova({
callbackOrder: 'reverse' callbackOrder: 'reverse'
}) })
store(dict: string, key: string, value?: string): Promise<any> { store(dict: string, key: string, value?: any): Promise<any> {
return; return;
} }