Skip to content

Commit 1ac5c9e

Browse files
committed
fix: actions type exports
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 894f48b commit 1ac5c9e

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

lib/actions/fileAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import type { ActionContext, ActionContextSingle } from '../types'
5+
import type { ActionContext, ActionContextSingle } from '../types.ts'
66

77
import logger from '../utils/logger.ts'
88

lib/actions/fileListAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import type { ActionContext, ViewActionContext } from '../types'
5+
import type { ActionContext, ViewActionContext } from '../types.ts'
66

77
import logger from '../utils/logger.ts'
88

lib/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export * from './navigation/index.ts'
1010
export * from './newMenu/index.ts'
1111
export * from './node/index.ts'
1212
export * from './permissions.ts'
13+
export * from './types.ts'
1314
export * from './utils/index.ts'
1415

1516
// Legacy export of dav utils

lib/types.d.ts renamed to lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
import { Folder, Node } from './node/index.ts'
77
import { View } from './navigation/index.ts'
88

9-
type ActionContextSingle = {
9+
export type ActionContextSingle = {
1010
nodes: [Node],
1111
view: View,
1212
folder: Folder,
1313
content: Node[],
1414
}
1515

16-
type ActionContext = {
16+
export type ActionContext = {
1717
nodes: Node[],
1818
view: View,
1919
folder: Folder,
2020
content: Node[],
2121
}
2222

23-
type ViewActionContext = {
23+
export type ViewActionContext = {
2424
view: View,
2525
folder: Folder,
2626
}

0 commit comments

Comments
 (0)