feat: add action result type
This commit is contained in:
parent
ca68e6856d
commit
d8e557dff9
3
app/types/action.ts
Normal file
3
app/types/action.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export type ActionResult<Intent extends string = string> =
|
||||||
|
| { ok: true; intent: Intent; message: string; id?: string }
|
||||||
|
| { ok: false; error: string };
|
||||||
Loading…
x
Reference in New Issue
Block a user