From 7f3166fcbec12f97f933031cc68f249bbda756a8 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Fri, 25 Feb 2022 17:42:39 +0100 Subject: [PATCH] Up jsdoc --- src/storage_manager/index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/storage_manager/index.js b/src/storage_manager/index.js index aa75bdb7a..884dcca77 100644 --- a/src/storage_manager/index.js +++ b/src/storage_manager/index.js @@ -217,7 +217,6 @@ export default () => { * @param {Object} data Data in key-value format, eg. `{ item1: value1, item2: value2 }` * @param {Function} resolve Resolve callback function. The result is passed as an argument. * @param {Function} reject Reject callback function. The error is passed as an argument. - * @return {Object|null} * @example * storageManager.store({item1: value1, item2: value2}); * */ @@ -243,15 +242,12 @@ export default () => { /** * Load resource from the current storage by keys - * @param {string|Array} keys Keys to load - * @param {Function} clb Callback function + * @param {Function} resolve Resolve callback function. The result is passed as an argument. + * @param {Function} reject Reject callback function. The error is passed as an argument. * @example - * storageManager.load(['item1', 'item2'], res => { + * storageManager.load(res => { * // res -> {item1: value1, item2: value2} * }); - * storageManager.load('item1', res => { - * // res -> {item1: value1} - * }); * */ async load(resolve, reject, options = {}) { const ev = 'load';