aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/services/FileAction.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/src/services/FileAction.ts')
-rw-r--r--apps/files/src/services/FileAction.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/src/services/FileAction.ts b/apps/files/src/services/FileAction.ts
index 94fc7e8ce5f..70d6405c804 100644
--- a/apps/files/src/services/FileAction.ts
+++ b/apps/files/src/services/FileAction.ts
@@ -22,6 +22,7 @@
import type { Node } from '@nextcloud/files'
import logger from '../logger'
+import type { Navigation } from './Navigation'
declare global {
interface Window {
@@ -48,14 +49,14 @@ interface FileActionData {
* @returns true if the action was executed, false otherwise
* @throws Error if the action failed
*/
- exec: (file: Node, view) => Promise<boolean|null>,
+ exec: (file: Node, view: Navigation, dir: string) => Promise<boolean|null>,
/**
* Function executed on multiple files action
* @returns true if the action was executed successfully,
* false otherwise and null if the action is silent/undefined.
* @throws Error if the action failed
*/
- execBatch?: (files: Node[], view) => Promise<(boolean|null)[]>
+ execBatch?: (files: Node[], view: Navigation, dir: string) => Promise<(boolean|null)[]>
/** This action order in the list */
order?: number,
/** Make this action the default */