ds-harness-remote-fast/packages/plugin/src/control-result.ts

5 lines
213 B
TypeScript

/** 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> } }