Skip to content

Commit aeffba3

Browse files
committed
refactor: Only one place for window type declarations
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 2e9b5a1 commit aeffba3

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

lib/globals.d.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

window.d.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*/
55
/// <reference types="@nextcloud/typings" />
66

7-
import type { Navigation } from './lib'
7+
import type { IFileListFilter, Navigation } from './lib'
88
import type { DavProperty } from './lib/dav/davProperties'
99
import type { FileAction } from './lib/fileAction'
1010
import type { Header } from './lib/fileListHeaders'
@@ -14,12 +14,19 @@ export {}
1414

1515
declare global {
1616
interface Window {
17-
OC: Nextcloud.v26.OC | Nextcloud.v27.OC | Nextcloud.v28.OC;
17+
OC: Nextcloud.v27.OC | Nextcloud.v28.OC | Nextcloud.v29.OC;
1818
_nc_dav_namespaces?: DavProperty
1919
_nc_dav_properties?: string[]
2020
_nc_fileactions?: FileAction[]
2121
_nc_filelistheader?: Header[]
2222
_nc_newfilemenu?: NewFileMenu
2323
_nc_navigation?: Navigation
24+
_nc_filelist_filters?: Map<string, IFileListFilter>
25+
26+
_oc_config?: {
27+
forbidden_filenames_characters: string[]
28+
/** @deprecated */
29+
blacklist_files_regex?: string
30+
}
2431
}
2532
}

0 commit comments

Comments
 (0)