MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / resSuccess

Function resSuccess

packages/worker-utils/src/res.ts:13–15  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

11export type ApiResponse<T> = SuccessResponse<T> | ErrorResponse;
12
13export function resSuccess<T>(data: T): SuccessResponse<T> {
14 return { success: true, data };
15}
16
17export function resError(error: string): ErrorResponse {
18 return { success: false, error };

Callers 15

handleRefreshGitTokenFunction · 0.90
handleCreateBeadFunction · 0.90
handleListBeadsFunction · 0.90
handleGetBeadFunction · 0.90
handleUpdateBeadStatusFunction · 0.90
handleCloseBeadFunction · 0.90
handleSlingBeadFunction · 0.90
handleDeleteBeadFunction · 0.90
handleListTownEventsFunction · 0.90
handleListEscalationsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected