diff --git a/apps/files/src/models/Tab.js b/apps/files/src/models/Tab.js index e43bdcd7e80..8ffcfdf25a9 100644 --- a/apps/files/src/models/Tab.js +++ b/apps/files/src/models/Tab.js @@ -22,8 +22,8 @@ export default class Tab { * @param {object} options destructuring object * @param {string} options.id the unique id of this tab * @param {string} options.name the translated tab name - * @param {?string} options.icon the icon css class - * @param {?string} options.iconSvg the icon in svg format + * @param {string} [options.icon] the icon css class + * @param {string} [options.iconSvg] the icon in svg format * @param {Function} options.mount function to mount the tab * @param {Function} [options.setIsActive] function to forward the active state of the tab * @param {Function} options.update function to update the tab diff --git a/window.d.ts b/window.d.ts index ff95f574ee1..0d808e32a8c 100644 --- a/window.d.ts +++ b/window.d.ts @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import type Tab from './apps/files/src/models/Tab.js' import type RouterService from './apps/files/src/services/RouterService.ts' import type Settings from './apps/files/src/services/Settings.js' import type Sidebar from './apps/files/src/services/Sidebar.js' @@ -12,6 +13,7 @@ type SidebarAPI = Sidebar & { close: () => void setFullScreenMode: (fullScreen: boolean) => void setShowTagsDefault: (showTagsDefault: boolean) => void + Tab: typeof Tab } declare global {