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/src | |
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/src')
-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 |
4 files changed, 14 insertions, 16 deletions
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 */ |