summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 14:55:59 +0100
committerLouis Chemineau <louis@chmn.me>2022-01-11 17:13:08 +0100
commit37e5050d69b1a6e8be83abc168f4b8a7e2ef3085 (patch)
tree8ebe491bd7b5959ba352f69be5147a27d6a76fc5 /core/src
parent9fc6cc96346a0a5ef4a997741d9b3b0f9a9aabbe (diff)
downloadnextcloud-server-37e5050d69b1a6e8be83abc168f4b8a7e2ef3085.tar.gz
nextcloud-server-37e5050d69b1a6e8be83abc168f4b8a7e2ef3085.zip
Import type from packages
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/legacy-loader.js1
-rw-r--r--core/src/OC/menu.js1
-rw-r--r--core/src/OC/notification.js3
-rw-r--r--core/src/OCP/appconfig.js1
-rw-r--r--core/src/services/UnifiedSearchService.js4
5 files changed, 6 insertions, 4 deletions
diff --git a/core/src/OC/legacy-loader.js b/core/src/OC/legacy-loader.js
index 07efbef0fc6..66687cf4de9 100644
--- a/core/src/OC/legacy-loader.js
+++ b/core/src/OC/legacy-loader.js
@@ -22,6 +22,7 @@
*
*/
+/** @typedef {import('jquery')} jQuery */
import $ from 'jquery'
import { generateFilePath } from '@nextcloud/router'
diff --git a/core/src/OC/menu.js b/core/src/OC/menu.js
index 9522650c472..74d1b179ea8 100644
--- a/core/src/OC/menu.js
+++ b/core/src/OC/menu.js
@@ -23,6 +23,7 @@
*/
import _ from 'underscore'
+/** @typedef {import('jquery')} jQuery */
import $ from 'jquery'
import { menuSpeed } from './constants'
diff --git a/core/src/OC/notification.js b/core/src/OC/notification.js
index 74499d5241b..f8c8feccd3c 100644
--- a/core/src/OC/notification.js
+++ b/core/src/OC/notification.js
@@ -26,6 +26,7 @@
*/
import _ from 'underscore'
+/** @typedef {import('jquery')} jQuery */
import $ from 'jquery'
import { showMessage, TOAST_DEFAULT_TIMEOUT, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
@@ -162,7 +163,7 @@ export default {
* @param {number} [options.timeout=7] timeout in seconds, if this is 0 it will show the message permanently
* @param {boolean} [options.isHTML=false] an indicator for HTML notifications (true) or text (false)
* @param {string} [options.type] notification type
- * @return {JQuery<any>} the toast element
+ * @return {JQuery} the toast element
* @deprecated 17.0.0 use the `@nextcloud/dialogs` package
*/
showTemporary(text, options) {
diff --git a/core/src/OCP/appconfig.js b/core/src/OCP/appconfig.js
index b4062bdf850..600f63581d3 100644
--- a/core/src/OCP/appconfig.js
+++ b/core/src/OCP/appconfig.js
@@ -33,7 +33,6 @@ import OC from '../OC/index'
* @param {object} [options.data] option data
* @param {Function} [options.success] success callback
* @param {Function} [options.error] error callback
- * @internal
*/
function call(method, endpoint, options) {
if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) {
diff --git a/core/src/services/UnifiedSearchService.js b/core/src/services/UnifiedSearchService.js
index dde36899869..32567ba6377 100644
--- a/core/src/services/UnifiedSearchService.js
+++ b/core/src/services/UnifiedSearchService.js
@@ -35,14 +35,14 @@ export const regexFilterNot = /-in:([a-z_-]+)/ig
/**
* Create a cancel token
*
- * @return {CancelTokenSource}
+ * @return {import('axios').CancelTokenSource}
*/
const createCancelToken = () => axios.CancelToken.source()
/**
* Get the list of available search providers
*
- * @return {Array}
+ * @return {Promise<Array>}
*/
export async function getTypes() {
try {