mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
d456b3cba1
commit
dd1b8893cc
@@ -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) {
|
||||
|
Reference in New Issue
Block a user