[ADF-2905] Added JSDocs for core (#3281)

* [ADF-2905] Updated JSDocs for core

* [ADF-2905] Added missing JSDoc for user pref service
This commit is contained in:
Andy Stark
2018-05-08 15:30:23 +01:00
committed by Eugenio Romano
parent d456b3cba1
commit dd1b8893cc
10 changed files with 102 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ export class StorageService {
/**
* Gets an item.
* @param key Key to identify the item
* @returns The item (if any) retrieved by the key
*/
getItem(key: string): string | null {
if (this.useLocalStorage) {
@@ -76,6 +77,7 @@ export class StorageService {
/**
* Is any item currently stored under `key`?
* @param key Key identifying item to check
* @returns True if key retrieves an item, false otherwise
*/
hasItem(key: string): boolean {
if (this.useLocalStorage) {