fix: actions

This commit is contained in:
shadcn 2023-06-16 21:52:01 +04:00
parent 071778533c
commit cb941daca9
17 changed files with 277 additions and 65 deletions

View file

@ -10,4 +10,9 @@ export interface Chat extends Record<string, any> {
sharePath?: string
}
export type ServerActionResult<Result> = Promise<Result | Error>
export type ServerActionResult<Result> = Promise<
| Result
| {
error: string
}
>