From 7c8d92e43cc055de370852c704199477d1127998 Mon Sep 17 00:00:00 2001 From: Tim Kuzhagaliyev Date: Fri, 20 Nov 2020 01:06:24 +0000 Subject: [PATCH] Fix incorrect type exports --- packages/chonky/src/index.ts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/chonky/src/index.ts b/packages/chonky/src/index.ts index 82bd6464..d2e80ac0 100644 --- a/packages/chonky/src/index.ts +++ b/packages/chonky/src/index.ts @@ -33,19 +33,18 @@ export { FileActionState, } from './types/action-handler.types'; export { ChonkyActionUnion } from './types/file-browser.types'; - +export { ChonkyIconName } from './types/icons.types'; +export type ChonkyIconProps = import('./types/icons.types').ChonkyIconProps; export { FileBrowserHandle, FileBrowserProps } from './types/file-browser.types'; -export { - FileViewConfig, - FileViewConfigGrid, - FileViewConfigList, - FileViewMode, -} from './types/file-view.types'; -export { ChonkyIconName, ChonkyIconProps } from './types/icons.types'; +export { FileViewMode } from './types/file-view.types'; +export type FileViewConfig = import('./types/file-view.types').FileViewConfig; +export type FileViewConfigGrid = import('./types/file-view.types').FileViewConfigGrid; +export type FileViewConfigList = import('./types/file-view.types').FileViewConfigList; export { setChonkyDefaults } from './util/default-config'; -export { ChonkyDndFileEntryItem, ChonkyDndFileEntryType } from './types/dnd.types'; +export { ChonkyDndFileEntryType } from './types/dnd.types'; +export type ChonkyDndFileEntryItem = import('./types/dnd.types').ChonkyDndFileEntryItem; export type FileActionHandler = GenericFileActionHandler; export type ChonkyFileActionData = MapFileActionsToData;