MCPcopy Create free account
hub / github.com/compozy/agh / requireResponseData

Function requireResponseData

web/src/lib/api-client.ts:54–63  ·  view source on GitHub ↗
(
  data: T | undefined,
  response: Response,
  fallback: string
)

Source from the content-addressed store, hash-verified

52}
53
54export function requireResponseData<T>(
55 data: T | undefined,
56 response: Response,
57 fallback: string
58): T {
59 if (data === undefined) {
60 throw new Error(`${fallback}: empty response (${response.status})`);
61 }
62 return data;
63}

Callers 15

listNotificationPresetsFunction · 0.90
createNotificationPresetFunction · 0.90
updateNotificationPresetFunction · 0.90
listVaultSecretsFunction · 0.90
getVaultSecretFunction · 0.90
putVaultSecretFunction · 0.90
getSchedulerFunction · 0.90
pauseSchedulerFunction · 0.90
resumeSchedulerFunction · 0.90
drainSchedulerFunction · 0.90
getSchedulerBacklogFunction · 0.90
listProvidersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected