aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/OCP/toast.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OCP/toast.js')
-rw-r--r--core/src/OCP/toast.js35
1 files changed, 10 insertions, 25 deletions
diff --git a/core/src/OCP/toast.js b/core/src/OCP/toast.js
index e5331377dc9..f93344bbc8e 100644
--- a/core/src/OCP/toast.js
+++ b/core/src/OCP/toast.js
@@ -1,23 +1,6 @@
-/*
- * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
- *
- * @author Julius Härtl <jus@bitgrid.net>
- *
- * @license GNU AGPL version 3 or any later version
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as
- * published by the Free Software Foundation, either version 3 of the
- * License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
+/**
+ * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
import {
@@ -27,13 +10,15 @@ import {
showWarning,
} from '@nextcloud/dialogs'
+/** @typedef {import('toastify-js')} Toast */
+
export default {
/**
* @deprecated 19.0.0 use `showSuccess` from the `@nextcloud/dialogs` package instead
*
* @param {string} text the toast text
* @param {object} options options
- * @returns {Toast}
+ * @return {Toast}
*/
success(text, options) {
return showSuccess(text, options)
@@ -43,7 +28,7 @@ export default {
*
* @param {string} text the toast text
* @param {object} options options
- * @returns {Toast}
+ * @return {Toast}
*/
warning(text, options) {
return showWarning(text, options)
@@ -53,7 +38,7 @@ export default {
*
* @param {string} text the toast text
* @param {object} options options
- * @returns {Toast}
+ * @return {Toast}
*/
error(text, options) {
return showError(text, options)
@@ -63,7 +48,7 @@ export default {
*
* @param {string} text the toast text
* @param {object} options options
- * @returns {Toast}
+ * @return {Toast}
*/
info(text, options) {
return showInfo(text, options)
@@ -73,7 +58,7 @@ export default {
*
* @param {string} text the toast text
* @param {object} options options
- * @returns {Toast}
+ * @return {Toast}
*/
message(text, options) {
return showMessage(text, options)