Skip to content

Commit

Permalink
refactor: Only one place for window type declarations
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Jul 25, 2024
1 parent 2e9b5a1 commit aeffba3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
16 changes: 0 additions & 16 deletions lib/globals.d.ts

This file was deleted.

11 changes: 9 additions & 2 deletions window.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
/// <reference types="@nextcloud/typings" />

import type { Navigation } from './lib'
import type { IFileListFilter, Navigation } from './lib'
import type { DavProperty } from './lib/dav/davProperties'
import type { FileAction } from './lib/fileAction'
import type { Header } from './lib/fileListHeaders'
Expand All @@ -14,12 +14,19 @@ export {}

declare global {
interface Window {
OC: Nextcloud.v26.OC | Nextcloud.v27.OC | Nextcloud.v28.OC;
OC: Nextcloud.v27.OC | Nextcloud.v28.OC | Nextcloud.v29.OC;
_nc_dav_namespaces?: DavProperty
_nc_dav_properties?: string[]
_nc_fileactions?: FileAction[]
_nc_filelistheader?: Header[]
_nc_newfilemenu?: NewFileMenu
_nc_navigation?: Navigation
_nc_filelist_filters?: Map<string, IFileListFilter>

_oc_config?: {
forbidden_filenames_characters: string[]
/** @deprecated */
blacklist_files_regex?: string
}
}
}

0 comments on commit aeffba3

Please sign in to comment.