diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-10 14:16:47 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-11 17:13:04 +0100 |
commit | 9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe (patch) | |
tree | 849ea6916ae25665bd1436a2d87db961ca67344d /core | |
parent | d92cbf51493f0aa15745d2f9545cba2372eecec3 (diff) | |
download | nextcloud-server-9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe.tar.gz nextcloud-server-9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe.zip |
Add generic type and description when its missing
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core')
-rw-r--r-- | core/src/OC/util.js | 2 | ||||
-rw-r--r-- | core/src/OCP/comments.js | 8 | ||||
-rw-r--r-- | core/src/OCP/whatsnew.js | 24 | ||||
-rw-r--r-- | core/src/Util/get-url-parameter.js | 2 | ||||
-rw-r--r-- | core/src/jquery/selectrange.js | 2 | ||||
-rw-r--r-- | core/src/services/WebAuthnAuthenticationService.js | 4 | ||||
-rw-r--r-- | core/src/systemtags/systemtagscollection.js | 2 |
7 files changed, 22 insertions, 22 deletions
diff --git a/core/src/OC/util.js b/core/src/OC/util.js index 463fd937eca..e93b1aca615 100644 --- a/core/src/OC/util.js +++ b/core/src/OC/util.js @@ -28,7 +28,7 @@ import OC from './index' import { formatFileSize as humanFileSize } from '@nextcloud/files' /** - * @param t + * @param {any} t - */ function chunkify(t) { // Adapted from http://my.opera.com/GreyWyvern/blog/show.dml/1671288 diff --git a/core/src/OCP/comments.js b/core/src/OCP/comments.js index 0817302c067..dadc9531235 100644 --- a/core/src/OCP/comments.js +++ b/core/src/OCP/comments.js @@ -35,21 +35,21 @@ import $ from 'jquery' const urlRegex = /(\s|^)(https?:\/\/)?((?:[-A-Z0-9+_]+\.)+[-A-Z]+(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig /** - * @param content + * @param {any} content - */ export function plainToRich(content) { return this.formatLinksRich(content) } /** - * @param content + * @param {any} content - */ export function richToPlain(content) { return this.formatLinksPlain(content) } /** - * @param content + * @param {any} content - */ export function formatLinksRich(content) { return content.replace(urlRegex, function(_, leadingSpace, protocol, url, trailingSpace) { @@ -65,7 +65,7 @@ export function formatLinksRich(content) { } /** - * @param content + * @param {any} content - */ export function formatLinksPlain(content) { const $content = $('<div></div>').html(content) diff --git a/core/src/OCP/whatsnew.js b/core/src/OCP/whatsnew.js index d125f85e11a..043951c3a1e 100644 --- a/core/src/OCP/whatsnew.js +++ b/core/src/OCP/whatsnew.js @@ -26,7 +26,7 @@ import $ from 'jquery' import { generateOcsUrl } from '@nextcloud/router' /** - * @param options + * @param {any} options - */ export function query(options) { options = options || {} @@ -42,8 +42,8 @@ export function query(options) { } /** - * @param version - * @param options + * @param {any} version - + * @param {any} options - */ export function dismiss(version, options) { options = options || {} @@ -59,10 +59,10 @@ export function dismiss(version, options) { } /** - * @param data - * @param statusText - * @param xhr - * @param dismissOptions + * @param {any} data - + * @param {any} statusText - + * @param {any} xhr - + * @param {any} dismissOptions - */ function onQuerySuccess(data, statusText, xhr, dismissOptions) { console.debug('querying Whats New data was successful: ' + statusText) @@ -145,9 +145,9 @@ function onQuerySuccess(data, statusText, xhr, dismissOptions) { } /** - * @param x - * @param t - * @param e + * @param {any} x - + * @param {any} t - + * @param {any} e - */ function onQueryError(x, t, e) { console.debug('querying Whats New Data resulted in an error: ' + t + e) @@ -155,14 +155,14 @@ function onQueryError(x, t, e) { } /** - * @param data + * @param {any} data - */ function onDismissSuccess(data) { // noop } /** - * @param data + * @param {any} data - */ function onDismissError(data) { console.debug('dismissing Whats New data resulted in an error: ' + data) diff --git a/core/src/Util/get-url-parameter.js b/core/src/Util/get-url-parameter.js index 32214d6bfe3..ebe4f9d78e3 100644 --- a/core/src/Util/get-url-parameter.js +++ b/core/src/Util/get-url-parameter.js @@ -22,7 +22,7 @@ */ /** - * @param name + * @param {any} name - */ export default function getURLParameter(name) { return decodeURIComponent( diff --git a/core/src/jquery/selectrange.js b/core/src/jquery/selectrange.js index f110bdbc501..e35ca85b497 100644 --- a/core/src/jquery/selectrange.js +++ b/core/src/jquery/selectrange.js @@ -26,7 +26,7 @@ import $ from 'jquery' /** * select a range in an input field * - * @link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area + * @see {@link http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area} * @param {number} start start selection from * @param {number} end number of char from start * @return {void} diff --git a/core/src/services/WebAuthnAuthenticationService.js b/core/src/services/WebAuthnAuthenticationService.js index 1e33dc78b3b..7773aa7dad1 100644 --- a/core/src/services/WebAuthnAuthenticationService.js +++ b/core/src/services/WebAuthnAuthenticationService.js @@ -24,7 +24,7 @@ import Axios from '@nextcloud/axios' import { generateUrl } from '@nextcloud/router' /** - * @param loginName + * @param {any} loginName - */ export function startAuthentication(loginName) { const url = generateUrl('/login/webauthn/start') @@ -34,7 +34,7 @@ export function startAuthentication(loginName) { } /** - * @param data + * @param {any} data - */ export function finishAuthentication(data) { const url = generateUrl('/login/webauthn/finish') diff --git a/core/src/systemtags/systemtagscollection.js b/core/src/systemtags/systemtagscollection.js index 5e6c43314e1..74517cf43ec 100644 --- a/core/src/systemtags/systemtagscollection.js +++ b/core/src/systemtags/systemtagscollection.js @@ -61,7 +61,7 @@ * Lazy fetch. * Only fetches once, subsequent calls will directly call the success handler. * - * @param options + * @param {any} options - * @param [options.force] true to force fetch even if cached entries exist * * @see Backbone.Collection#fetch |