ar-test/app/types/action.ts

4 lines
160 B
TypeScript

export type ActionResult<Intent extends string = string> =
| { ok: true; intent: Intent; message: string; id?: string }
| { ok: false; error: string };