Body of a HTTP API success response.
Almost all ScreepsHttpClient endpoint methods will return a response that extends this type. Any non-conforming responses will be of type ScreepsErrorResponse.
ScreepsApiError for the error type thrown by endpoint methods
An API success response always contains { ok: 1 }
{ ok: 1 }
Body of a HTTP API success response.
Almost all ScreepsHttpClient endpoint methods will return a response that extends this type. Any non-conforming responses will be of type ScreepsErrorResponse.
See
ScreepsApiError for the error type thrown by endpoint methods