Files
2024-04-05 05:11:10 -07:00

20 lines
388 B
TypeScript

import { type Message } from 'ai'
// TODO refactor and remove unneccessary duplicate data.
export interface Chats extends Record<string, any> {
id: string
title: string
createdAt: Date
userId: string
path: string
messages: Message[]
sharePath?: string // Refactor to use RLS
}
export type ServerActionResult<Result> = Promise<
| Result
| {
error: string
}
>