From b3ed0e646eae00a4a9ab3c750f7c1af84c60b5b7 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Thu, 24 Apr 2025 23:23:58 +0800 Subject: [PATCH] fix: app import inteface --- app/src/types.ts | 2 +- app/src/utils/socket.ts | 2 +- packages/file-graph/index.ts | 9 ++++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/types.ts b/app/src/types.ts index d3d77b2..da2d02c 100644 --- a/app/src/types.ts +++ b/app/src/types.ts @@ -1,4 +1,4 @@ -import { FileGraph } from '../../packages/file-graph' +import type { FileGraph } from '../../packages/file-graph' import type { IResponse, ITask } from '../../packages/game' export interface Task { diff --git a/app/src/utils/socket.ts b/app/src/utils/socket.ts index 13d24a2..e520533 100644 --- a/app/src/utils/socket.ts +++ b/app/src/utils/socket.ts @@ -1,5 +1,5 @@ import { io, Socket } from 'socket.io-client' -import { Session } from '../types' +import type { Session } from '../types' type SocketCallback = (data: any) => void diff --git a/packages/file-graph/index.ts b/packages/file-graph/index.ts index c687322..ac22eb6 100644 --- a/packages/file-graph/index.ts +++ b/packages/file-graph/index.ts @@ -1,3 +1,6 @@ -export { default as File, FileObject } from './file' -export { default as FileNode, IFileNode } from './fileNode' -export { default as FileGraph, FileGraphUpdateEvent } from './fileGraph' +export { default as File } from './file' +export type { FileObject } from './file' +export { default as FileNode } from './fileNode' +export type { IFileNode } from './fileNode' +export { default as FileGraph } from './fileGraph' +export type { FileGraphUpdateEvent } from './fileGraph'