Signed-off-by: Louis Chemineau <louis@chmn.me>tags/v24.0.0beta1
@@ -20,4 +20,9 @@ module.exports = { | |||
ignores: ['/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'], | |||
}], | |||
}, | |||
settings: { | |||
jsdoc: { | |||
mode: 'typescript', | |||
}, | |||
}, | |||
} |
@@ -21,6 +21,8 @@ | |||
* | |||
*/ | |||
/** @typedef {import('jquery')} jQuery */ | |||
(function() { | |||
OCA.Comments.ActivityTabViewPlugin = { | |||
@@ -25,7 +25,7 @@ import axios from '@nextcloud/axios' | |||
/** | |||
* Create a cancel token | |||
* | |||
* @return {CancelTokenSource} | |||
* @return {import('axios').CancelTokenSource} | |||
*/ | |||
const createCancelToken = () => axios.CancelToken.source() | |||
@@ -22,6 +22,7 @@ | |||
* | |||
*/ | |||
/** @typedef {import('jquery')} jQuery */ | |||
import $ from 'jquery' | |||
import { generateFilePath } from '@nextcloud/router' | |||
@@ -23,6 +23,7 @@ | |||
*/ | |||
import _ from 'underscore' | |||
/** @typedef {import('jquery')} jQuery */ | |||
import $ from 'jquery' | |||
import { menuSpeed } from './constants' |
@@ -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) { |
@@ -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()) { |
@@ -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 { |