perf: use biome

This commit is contained in:
hamster1963
2025-12-28 18:05:02 +08:00
parent 3bfd4ef4d2
commit 29e349505d
115 changed files with 9924 additions and 8381 deletions
+14 -14
View File
@@ -1,19 +1,19 @@
import { createContext } from "react"
import { createContext } from "react";
export interface WebSocketContextType {
lastMessage: { data: string } | null
connected: boolean
messageHistory: { data: string }[]
reconnect: () => void
needReconnect: boolean
setNeedReconnect: (needReconnect: boolean) => void
lastMessage: { data: string } | null;
connected: boolean;
messageHistory: { data: string }[];
reconnect: () => void;
needReconnect: boolean;
setNeedReconnect: (needReconnect: boolean) => void;
}
export const WebSocketContext = createContext<WebSocketContextType>({
lastMessage: null,
connected: false,
messageHistory: [],
reconnect: () => {},
needReconnect: false,
setNeedReconnect: () => {},
})
lastMessage: null,
connected: false,
messageHistory: [],
reconnect: () => {},
needReconnect: false,
setNeedReconnect: () => {},
});