diff options
author | Louis Chemineau <louis@chmn.me> | 2022-01-10 14:06:28 +0100 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2022-01-11 17:12:55 +0100 |
commit | d92cbf51493f0aa15745d2f9545cba2372eecec3 (patch) | |
tree | 349a555a74c99b40c20fcc470c26b7f7c0029f8d /apps/workflowengine/src | |
parent | 7484abb6c07f2296abc2040ecd747ddf1d65e98e (diff) | |
download | nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.tar.gz nextcloud-server-d92cbf51493f0aa15745d2f9545cba2372eecec3.zip |
Typing corrections
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/workflowengine/src')
-rw-r--r-- | apps/workflowengine/src/store.js | 7 | ||||
-rw-r--r-- | apps/workflowengine/src/workflowengine.js | 4 |
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 */ /** |