Revert "Upgrade linter and formatter to Ultracite" (#1226)
This commit is contained in:
parent
0e320b391d
commit
1aff7d9868
177 changed files with 8334 additions and 6943 deletions
25
lib/types.ts
25
lib/types.ts
|
|
@ -1,14 +1,15 @@
|
|||
import type { InferUITool, UIMessage } from "ai";
|
||||
import { z } from "zod";
|
||||
import type { ArtifactKind } from "@/components/artifact";
|
||||
import type { createDocument } from "./ai/tools/create-document";
|
||||
import type { getWeather } from "./ai/tools/get-weather";
|
||||
import type { requestSuggestions } from "./ai/tools/request-suggestions";
|
||||
import type { updateDocument } from "./ai/tools/update-document";
|
||||
import type { Suggestion } from "./db/schema";
|
||||
import type { AppUsage } from "./usage";
|
||||
import { z } from 'zod';
|
||||
import type { getWeather } from './ai/tools/get-weather';
|
||||
import type { createDocument } from './ai/tools/create-document';
|
||||
import type { updateDocument } from './ai/tools/update-document';
|
||||
import type { requestSuggestions } from './ai/tools/request-suggestions';
|
||||
import type { InferUITool, UIMessage } from 'ai';
|
||||
import type { AppUsage } from './usage';
|
||||
|
||||
export type DataPart = { type: "append-message"; message: string };
|
||||
import type { ArtifactKind } from '@/components/artifact';
|
||||
import type { Suggestion } from './db/schema';
|
||||
|
||||
export type DataPart = { type: 'append-message'; message: string };
|
||||
|
||||
export const messageMetadataSchema = z.object({
|
||||
createdAt: z.string(),
|
||||
|
|
@ -51,8 +52,8 @@ export type ChatMessage = UIMessage<
|
|||
ChatTools
|
||||
>;
|
||||
|
||||
export type Attachment = {
|
||||
export interface Attachment {
|
||||
name: string;
|
||||
url: string;
|
||||
contentType: string;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue