Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(AppPreferences): changed input type #1498

Merged
merged 2 commits into from
May 9, 2017
Merged

refactor(AppPreferences): changed input type #1498

merged 2 commits into from
May 9, 2017

Conversation

danielsogl
Copy link
Owner

fix #1334

* @return {Promise<any>} Returns a promise
*/
@Cordova({
callbackOrder: 'reverse'
})
store(dict: string, key: string, value?: string): Promise<any> {
store(dict: string, key: string | number | boolean, value?: string | number | boolean): Promise<any> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok looks like the value can be anything, since they run it through JSON.stringify(). But the key has to be a string.

@danielsogl danielsogl closed this May 8, 2017
@danielsogl danielsogl reopened this May 8, 2017
@ihadeed ihadeed merged commit c7111a3 into danielsogl:master May 9, 2017
@danielsogl danielsogl deleted the patch-34 branch May 10, 2017 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[AppPreferences] store should accept string, number, boolean
2 participants