diff --git a/lib/actions/fileAction.ts b/lib/actions/fileAction.ts index 613e218f..2ce445b1 100644 --- a/lib/actions/fileAction.ts +++ b/lib/actions/fileAction.ts @@ -2,7 +2,7 @@ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import type { ActionContext, ActionContextSingle } from '../types' +import type { ActionContext, ActionContextSingle } from '../types.ts' import logger from '../utils/logger.ts' diff --git a/lib/actions/fileListAction.ts b/lib/actions/fileListAction.ts index e45f3f8d..065b86a1 100644 --- a/lib/actions/fileListAction.ts +++ b/lib/actions/fileListAction.ts @@ -2,7 +2,7 @@ * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import type { ActionContext, ViewActionContext } from '../types' +import type { ActionContext, ViewActionContext } from '../types.ts' import logger from '../utils/logger.ts' diff --git a/lib/index.ts b/lib/index.ts index cd16c35d..16095546 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -10,6 +10,7 @@ export * from './navigation/index.ts' export * from './newMenu/index.ts' export * from './node/index.ts' export * from './permissions.ts' +export * from './types.ts' export * from './utils/index.ts' // Legacy export of dav utils diff --git a/lib/types.d.ts b/lib/types.ts similarity index 79% rename from lib/types.d.ts rename to lib/types.ts index d1ea2f64..b69fb7ae 100644 --- a/lib/types.d.ts +++ b/lib/types.ts @@ -6,21 +6,21 @@ import { Folder, Node } from './node/index.ts' import { View } from './navigation/index.ts' -type ActionContextSingle = { +export type ActionContextSingle = { nodes: [Node], view: View, folder: Folder, content: Node[], } -type ActionContext = { +export type ActionContext = { nodes: Node[], view: View, folder: Folder, content: Node[], } -type ViewActionContext = { +export type ViewActionContext = { view: View, folder: Folder, }