feat: add action result type

This commit is contained in:
rajun 2026-10-27 16:28:48 +05:30
parent ca68e6856d
commit d8e557dff9

3
app/types/action.ts Normal file
View File

@ -0,0 +1,3 @@
export type ActionResult<Intent extends string = string> =
| { ok: true; intent: Intent; message: string; id?: string }
| { ok: false; error: string };