Import packages/plugin/src/control-result.ts
This commit is contained in:
parent
6dafbea307
commit
6cf4cc55e4
|
|
@ -0,0 +1,4 @@
|
||||||
|
/** Result envelope for the plugin's local control route. */
|
||||||
|
export type ControlResult<T> =
|
||||||
|
| { ok: true; value: T }
|
||||||
|
| { ok: false; error: { code: string; message: string; details: Record<string, unknown> } }
|
||||||
Loading…
Reference in New Issue