Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>pull/54410/head
parent
776a689e09
commit
971dfd7cbf
@ -0,0 +1,39 @@ |
||||
/** |
||||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
||||
* SPDX-License-Identifier: AGPL-3.0-or-later |
||||
*/ |
||||
|
||||
import type RouterService from './apps/files/src/services/RouterService' |
||||
import type Settings from './apps/files/src/services/Settings' |
||||
import type Sidebar from './apps/files/src/services/Sidebar' |
||||
|
||||
type SidebarAPI = Sidebar & { |
||||
open: (path: string) => Promise<void> |
||||
close: () => void |
||||
setFullScreenMode: (fullScreen: boolean) => void |
||||
setShowTagsDefault: (showTagsDefault: boolean) => void |
||||
} |
||||
|
||||
declare global { |
||||
interface Window { |
||||
OC: Nextcloud.v29.OC |
||||
|
||||
// Private Files namespace
|
||||
OCA: { |
||||
Files: { |
||||
Settings: Settings |
||||
Sidebar: SidebarAPI |
||||
} |
||||
} & Record<string, any> // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
|
||||
// Public Files namespace
|
||||
OCP: { |
||||
Files: { |
||||
Router: RouterService |
||||
} |
||||
} & Nextcloud.v29.OCP |
||||
|
||||
// Private global files pinia store
|
||||
_nc_files_pinia: Pinia |
||||
} |
||||
} |
||||
Loading…
Reference in new issue