Skip to content

Commit

Permalink
docs(localStorage): update docs to use correct types
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Apr 15, 2016
1 parent ec1fe5d commit dca6540
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ionic/platform/storage/local-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {StorageEngine} from './storage';
* export class MyClass{
* constructor(){
* this.local = new Storage(LocalStorage);
* this.local.set('didTutorial', true);
* this.local.set('didTutorial', 'true');
* }
*}
*```
Expand All @@ -36,7 +36,7 @@ export class LocalStorage extends StorageEngine {

/**
* Get the value of a key in LocalStorage
* @param {String} key the key you want to lookup in LocalStorage
* @param {string} key the key you want to lookup in LocalStorage
*/
get(key: string): Promise<string> {
return new Promise((resolve, reject) => {
Expand All @@ -51,8 +51,8 @@ export class LocalStorage extends StorageEngine {

/**
* Set a key value pair and save it to LocalStorage
* @param {String} key the key you want to save to LocalStorage
* @param {Any} value the value of the key you're saving
* @param {string} key the key you want to save to LocalStorage
* @param {string} value the value of the key you're saving
*/
set(key: string, value: string): Promise<any> {
return new Promise((resolve, reject) => {
Expand All @@ -67,7 +67,7 @@ export class LocalStorage extends StorageEngine {

/**
* Remove a key from LocalStorage
* @param {String} key the key you want to remove from LocalStorage
* @param {string} key the key you want to remove from LocalStorage
*/
remove(key: string): Promise<any> {
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit dca6540

Please sign in to comment.