diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-10 14:06:28 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-11 17:12:55 +0100 |
commit | d92cbf51493f0aa15745d2f9545cba2372eecec3 (patch) | |
tree | 349a555a74c99b40c20fcc470c26b7f7c0029f8d /apps/files_sharing | |
parent | 7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff) | |
download | nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.tar.gz nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.zip |
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/js/files_drop.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 10 | ||||
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 2 | ||||
-rw-r--r-- | apps/files_sharing/src/mixins/SharesMixin.js | 4 | ||||
-rw-r--r-- | apps/files_sharing/src/models/Share.js | 14 | ||||
-rw-r--r-- | apps/files_sharing/src/services/ConfigService.js | 10 |
6 files changed, 20 insertions, 22 deletions
diff --git a/apps/files_sharing/js/files_drop.js b/apps/files_sharing/js/files_drop.js index 1360ffe42d7..e2830aeea9e 100644 --- a/apps/files_sharing/js/files_drop.js +++ b/apps/files_sharing/js/files_drop.js @@ -14,7 +14,7 @@ /** @type {Function} **/ _template: undefined, - /** @type {bool} */ + /** @type {boolean} */ _uploading: false, addFileToUpload: function(e, data) { diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 4e364f92077..e8420113ad9 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -374,7 +374,7 @@ * Converts the OCS API share response data to a file info * list * @param {Array} data OCS API share array - * @param {bool} sharedWithUser + * @param {boolean} sharedWithUser * @returns {Array.<OCA.Sharing.SharedFileInfo>} array of shared file info */ _makeFilesFromShares: function(data, sharedWithUser) { @@ -511,10 +511,10 @@ * * @typedef {Object} OCA.Sharing.ShareInfo * - * @property {int} id share ID - * @property {int} type share type + * @property {number} id share ID + * @property {number} type share type * @property {String} target share target, either user name or group name - * @property {int} stime share timestamp in milliseconds + * @property {number} stime share timestamp in milliseconds * @property {String} [targetDisplayName] display name of the recipient * (only when shared with others) * @property {String} [targetShareWithId] id of the recipient @@ -536,7 +536,7 @@ * * @property {Array.<OCA.Sharing.ShareInfo>} shares array of shares for * this file - * @property {int} mtime most recent share time (if multiple shares) + * @property {number} mtime most recent share time (if multiple shares) * @property {String} shareOwner name of the share owner * @property {Array.<String>} recipients name of the first 4 recipients * (this is mostly for display purposes) diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 8d610333834..d5d7f62a832 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -373,7 +373,7 @@ export default { }, /** - * @return {bool} + * @return {boolean} */ hasStatus() { if (this.share.type !== this.SHARE_TYPES.SHARE_TYPE_USER) { diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index 97eea53391f..3844cef042b 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -27,7 +27,6 @@ // eslint-disable-next-line import/no-unresolved, node/no-missing-import import PQueue from 'p-queue' -// import PQueue from 'p-queue/dist/index' import debounce from 'debounce' import Share from '../models/Share' @@ -200,7 +199,6 @@ export default { /** * When the note change, we trim, save and dispatch * - * @param {string} note the note */ onNoteSubmit() { if (this.share.newNote) { @@ -231,7 +229,7 @@ export default { /** * Send an update of the share to the queue * - * @param {string} propertyNames the properties to sync + * @param {Array<string>} propertyNames the properties to sync */ queueUpdate(...propertyNames) { if (propertyNames.length === 0) { diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js index 239eb8c947e..3f8b5ed9ae7 100644 --- a/apps/files_sharing/src/models/Share.js +++ b/apps/files_sharing/src/models/Share.js @@ -65,7 +65,7 @@ export default class Share { /** * get the share id * - * @return {int} + * @return {number} * @readonly * @memberof Share */ @@ -76,7 +76,7 @@ export default class Share { /** * Get the share type * - * @return {int} + * @return {number} * @readonly * @memberof Share */ @@ -88,7 +88,7 @@ export default class Share { * Get the share permissions * See OC.PERMISSION_* variables * - * @return {int} + * @return {number} * @readonly * @memberof Share */ @@ -100,7 +100,7 @@ export default class Share { * Set the share permissions * See OC.PERMISSION_* variables * - * @param {int} permissions valid permission, See OC.PERMISSION_* variables + * @param {number} permissions valid permission, See OC.PERMISSION_* variables * @memberof Share */ set permissions(permissions) { @@ -219,7 +219,7 @@ export default class Share { /** * Get the share creation timestamp * - * @return {int} + * @return {number} * @readonly * @memberof Share */ @@ -417,7 +417,7 @@ export default class Share { /** * Get the shared item id * - * @return {int} + * @return {number} * @readonly * @memberof Share */ @@ -441,7 +441,7 @@ export default class Share { /** * Get the parent folder id if any * - * @return {int} + * @return {number} * @readonly * @memberof Share */ diff --git a/apps/files_sharing/src/services/ConfigService.js b/apps/files_sharing/src/services/ConfigService.js index 919c0db7b36..0c371633994 100644 --- a/apps/files_sharing/src/services/ConfigService.js +++ b/apps/files_sharing/src/services/ConfigService.js @@ -219,7 +219,7 @@ export default class Config { /** * Get the default days to link shares expiration * - * @return {int} + * @return {number} * @readonly * @memberof Config */ @@ -230,7 +230,7 @@ export default class Config { /** * Get the default days to internal shares expiration * - * @return {int} + * @return {number} * @readonly * @memberof Config */ @@ -241,7 +241,7 @@ export default class Config { /** * Get the default days to remote shares expiration * - * @return {int} + * @return {number} * @readonly * @memberof Config */ @@ -294,7 +294,7 @@ export default class Config { /** * Get the maximum results of a share search * - * @return {int} + * @return {number} * @readonly * @memberof Config */ @@ -306,7 +306,7 @@ export default class Config { * Get the minimal string length * to initiate a share search * - * @return {int} + * @return {number} * @readonly * @memberof Config */ |