Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: actions type exports
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Nov 27, 2025
commit 1ac5c9ef52e99be9bdaeeefa0ec18184c8d54d47
2 changes: 1 addition & 1 deletion lib/actions/fileAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion lib/actions/fileListAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
1 change: 1 addition & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe safe guard this

Suggested change
export * from './types.ts'
export type * from './types.ts'

export * from './utils/index.ts'

// Legacy export of dav utils
Expand Down
6 changes: 3 additions & 3 deletions lib/types.d.ts → lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}