Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-01-10 16:06:28 +0300
committerLouis Chemineau <louis@chmn.me>2022-01-11 19:12:55 +0300
commitd92cbf51493f0aa15745d2f9545cba2372eecec3 (patch)
tree349a555a74c99b40c20fcc470c26b7f7c0029f8d /apps/workflowengine/src
parent7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff)
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r--apps/workflowengine/src/store.js7
-rw-r--r--apps/workflowengine/src/workflowengine.js4
2 files changed, 5 insertions, 6 deletions
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js
index 81735a43638..f1590099948 100644
--- a/apps/workflowengine/src/store.js
+++ b/apps/workflowengine/src/store.js
@@ -25,7 +25,7 @@
*/
import Vue from 'vue'
-import Vuex from 'vuex'
+import Vuex, { Store } from 'vuex'
import axios from '@nextcloud/axios'
import { getApiUrl } from './helpers/api'
import confirmPassword from '@nextcloud/password-confirmation'
@@ -33,7 +33,7 @@ import { loadState } from '@nextcloud/initial-state'
Vue.use(Vuex)
-const store = new Vuex.Store({
+const store = new Store({
state: {
rules: [],
scope: loadState('workflowengine', 'scope'),
@@ -161,8 +161,7 @@ const store = new Vuex.Store({
* Return all available checker plugins for a given entity class
*
* @param {object} state the store state
- * @param {object} entity the entity class
- * @return {Array} the available plugins
+ * @return {Function} the available plugins
*/
getChecksForEntity(state) {
return (entity) => {
diff --git a/apps/workflowengine/src/workflowengine.js b/apps/workflowengine/src/workflowengine.js
index a3e92c2a997..f66b9e54f6b 100644
--- a/apps/workflowengine/src/workflowengine.js
+++ b/apps/workflowengine/src/workflowengine.js
@@ -37,8 +37,8 @@ import ShippedChecks from './components/Checks'
* The component should handle the v-model directive properly,
* so it needs a value property to receive data and emit an input
* event once the data has changed
- * @property {callable} placeholder - Return a placeholder of no custom component is used
- * @property {callable} validate - validate a check if no custom component is used
+ * @property {Function} placeholder - Return a placeholder of no custom component is used
+ * @property {Function} validate - validate a check if no custom component is used
*/
/**