aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OC
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/OC
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/OC')
-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
3 files changed, 4 insertions, 1 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) {