Skip to content

five-on-it / apps/mcp/src/api / Answer

Interface: Answer<T> ​

Defined in: apps/mcp/src/api.ts:15

An answer of the API: its status and its body (parsed JSON, or the text when it is not JSON).

Type Parameters ​

T ​

T = unknown

Properties ​

body ​

body: T

Defined in: apps/mcp/src/api.ts:21

The body.


ok ​

ok: boolean

Defined in: apps/mcp/src/api.ts:19

Whether the status is 2xx.


status ​

status: number

Defined in: apps/mcp/src/api.ts:17

The HTTP status.