aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/eventbus.d.ts
blob: db90c40eeaef28e16ca89e7f3cbf86d2e9dcf611 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
 * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
import type { IFileListFilter, Node } from '@nextcloud/files'

declare module '@nextcloud/event-bus' {
	export interface NextcloudEvents {
		// mapping of 'event name' => 'event type'
		'files:config:updated': { key: string, value: unknown }

		'files:favorites:removed': Node
		'files:favorites:added': Node
		'files:node:renamed': Node

		'files:filter:added': IFileListFilter
		'files:filter:removed': string
	}
}

export {}