diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-28 10:37:11 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-31 12:46:20 +0200 |
commit | 622bf3003107d568e3c798547d4f1aa46e86f50a (patch) | |
tree | 3acef5c65afec675353c81fd033ec613fd721e3f /apps/files/src | |
parent | 67d8277c49ce610e0129f9b38b1309ba7380ce08 (diff) | |
download | nextcloud-server-622bf3003107d568e3c798547d4f1aa46e86f50a.tar.gz nextcloud-server-622bf3003107d568e3c798547d4f1aa46e86f50a.zip |
fix(deps): Update `@nextcloud/event-bus` to version 3.3.1
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/actions/deleteAction.spec.ts | 2 | ||||
-rw-r--r-- | apps/files/src/actions/favoriteAction.spec.ts | 2 | ||||
-rw-r--r-- | apps/files/src/actions/renameAction.spec.ts | 2 | ||||
-rw-r--r-- | apps/files/src/eventbus.d.ts | 11 | ||||
-rw-r--r-- | apps/files/src/views/favorites.spec.ts | 3 |
5 files changed, 16 insertions, 4 deletions
diff --git a/apps/files/src/actions/deleteAction.spec.ts b/apps/files/src/actions/deleteAction.spec.ts index 46bb9fd07c8..86e1812a9d1 100644 --- a/apps/files/src/actions/deleteAction.spec.ts +++ b/apps/files/src/actions/deleteAction.spec.ts @@ -5,7 +5,7 @@ import { action } from './deleteAction' import { expect } from '@jest/globals' import { File, Folder, Permission, View, FileAction } from '@nextcloud/files' -import * as eventBus from '@nextcloud/event-bus' +import eventBus from '@nextcloud/event-bus' import axios from '@nextcloud/axios' import logger from '../logger' diff --git a/apps/files/src/actions/favoriteAction.spec.ts b/apps/files/src/actions/favoriteAction.spec.ts index 701047f2660..39b82ff82d6 100644 --- a/apps/files/src/actions/favoriteAction.spec.ts +++ b/apps/files/src/actions/favoriteAction.spec.ts @@ -5,7 +5,7 @@ import { action } from './favoriteAction' import { expect } from '@jest/globals' import { File, Permission, View, FileAction } from '@nextcloud/files' -import * as eventBus from '@nextcloud/event-bus' +import eventBus from '@nextcloud/event-bus' import * as favoriteAction from './favoriteAction' import axios from '@nextcloud/axios' import logger from '../logger' diff --git a/apps/files/src/actions/renameAction.spec.ts b/apps/files/src/actions/renameAction.spec.ts index c1f61c058a4..f0428996972 100644 --- a/apps/files/src/actions/renameAction.spec.ts +++ b/apps/files/src/actions/renameAction.spec.ts @@ -5,7 +5,7 @@ import { action } from './renameAction' import { expect } from '@jest/globals' import { File, Permission, View, FileAction } from '@nextcloud/files' -import * as eventBus from '@nextcloud/event-bus' +import eventBus from '@nextcloud/event-bus' const view = { id: 'files', diff --git a/apps/files/src/eventbus.d.ts b/apps/files/src/eventbus.d.ts new file mode 100644 index 00000000000..1d68a3229a8 --- /dev/null +++ b/apps/files/src/eventbus.d.ts @@ -0,0 +1,11 @@ +import type { Node } from '@nextcloud/files' + +declare module '@nextcloud/event-bus' { + export interface NextcloudEvents { + // mapping of 'event name' => 'event type' + 'files:favorites:removed': Node + 'files:favorites:added': Node + } +} + +export {} diff --git a/apps/files/src/views/favorites.spec.ts b/apps/files/src/views/favorites.spec.ts index b939101f8d3..58e60b2ee06 100644 --- a/apps/files/src/views/favorites.spec.ts +++ b/apps/files/src/views/favorites.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable import/no-named-as-default-member */ /** * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later @@ -5,7 +6,7 @@ import { basename } from 'path' import { expect } from '@jest/globals' import { Folder, Navigation, getNavigation } from '@nextcloud/files' -import * as eventBus from '@nextcloud/event-bus' +import eventBus from '@nextcloud/event-bus' import * as initialState from '@nextcloud/initial-state' import { action } from '../actions/favoriteAction' |