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'