refactor: canonicalize TypeScript and Tailwind syntax

This commit is contained in:
2026-07-14 19:06:47 +08:00
parent 52bbc363cf
commit 836ae95940
23 changed files with 58 additions and 58 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ import { todayString } from "@/utils/date";
* Business fact: `role === "assistant"` means the message is from AI.
*/
export function localMessagesToUi(
records: ReadonlyArray<{
records: readonly {
id?: string;
type?: string;
content: string;
@@ -16,7 +16,7 @@ export function localMessagesToUi(
audioUrl?: string | null;
image?: { type: string | null; url: string | null };
lockDetail?: ChatLockDetailData;
}>,
}[],
): UiMessage[] {
return records.map((m) => ({
...(m.id ? { id: m.id } : {}),