aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OCP
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 14:16:47 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-11 17:13:04 +0100
commit9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe (patch)
tree849ea6916ae25665bd1436a2d87db961ca67344d /core/src/OCP
parentd92cbf51493f0aa15745d2f9545cba2372eecec3 (diff)
downloadnextcloud-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/src/OCP')
-rw-r--r--core/src/OCP/comments.js8
-rw-r--r--core/src/OCP/whatsnew.js24
2 files changed, 16 insertions, 16 deletions
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)