diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-05-28 10:37:11 +0200 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-05-31 15:38:45 -0700 |
commit | dc1ca39f0fd42aca3cf41b47d76a32f990883a97 (patch) | |
tree | 9cca677a9d2b2e9702c52748259957c04c827d11 /apps/files | |
parent | 39ddfb07b59fba74d00a49194bdb16b521d01e6a (diff) | |
download | nextcloud-server-dc1ca39f0fd42aca3cf41b47d76a32f990883a97.tar.gz nextcloud-server-dc1ca39f0fd42aca3cf41b47d76a32f990883a97.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')
-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 0adb302dc32..936079f8597 100644 --- a/apps/files/src/actions/deleteAction.spec.ts +++ b/apps/files/src/actions/deleteAction.spec.ts @@ -22,7 +22,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 13d24c57179..a5864d55835 100644 --- a/apps/files/src/actions/favoriteAction.spec.ts +++ b/apps/files/src/actions/favoriteAction.spec.ts @@ -22,7 +22,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 7166483f72c..461fb24f938 100644 --- a/apps/files/src/actions/renameAction.spec.ts +++ b/apps/files/src/actions/renameAction.spec.ts @@ -22,7 +22,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 9497a7be1f9..b33a68955f1 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 */ /** * @copyright Copyright (c) 2023 John Molakvoæ <skjnldsv@protonmail.com> * @@ -22,7 +23,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' |