Skip to content

Commit 95c697c

Browse files
committed
chore: separate type imports
1 parent 0263cd5 commit 95c697c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

_build/js/src/db.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import {
1+
import type {
22
AssistantMessageContentType,
33
Message,
44
UserAttachment,
55
UserMessageContext,
66
BaseMessage,
77
} from './chatHistory';
8-
98
import type { Metadata, ToolCalls, ToolResponseContent } from './executor/types';
109

1110
const DB_NAME = 'modAI';

_build/js/src/ui/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { createGenerateButton } from './generateButton';
22
import { createModal, verifyPermissions } from './localChat';
3-
import { LocalChatConfig } from './localChat/types';
43
import { createLoadingOverlay } from './overlay';
54

5+
import type { LocalChatConfig } from './localChat/types';
6+
67
type LocalChat = {
78
/**
89
* @deprecated use the ui.localChat.createModal instead

_build/js/src/ui/localChat/modalBuilder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ import { scrollToBottom } from './modalActions';
44
import { buildModalChat } from './modalChat';
55
import { buildModalHeader } from './modalHeader';
66
import { buildModalInput } from './modalInput';
7-
import { chatHistory, UpdatableHTMLElement } from '../../chatHistory';
7+
import { chatHistory } from '../../chatHistory';
88
import { globalState } from '../../globalState';
99
import { lng } from '../../lng';
1010
import { createModAIShadow } from '../dom/modAIShadow';
1111

1212
import type { Modal, LocalChatConfig } from './types';
13+
import type { UpdatableHTMLElement } from '../../chatHistory';
1314

1415
export const buildModal = (config: LocalChatConfig) => {
1516
const { shadow, shadowRoot } = createModAIShadow<Modal>(true, () => {

0 commit comments

Comments
 (0)