MCPcopy
hub / github.com/KeygraphHQ/shannon / err

Function err

apps/worker/src/types/result.ts:46–48  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

44 * Create an error Result
45 */
46export function err<E>(error: E): Err<E> {
47 return { ok: false, error };
48}
49
50/**
51 * Type guard for Ok variant

Callers 13

loadMethod · 0.85
loadOptionalMethod · 0.85
validateQueueSafeFunction · 0.85
verifySavedAuthStateFunction · 0.85
classifyResultFunction · 0.85
validateRepoFunction · 0.85
validateConfigFunction · 0.85
validateCodePathsExistFunction · 0.85
classifySdkErrorFunction · 0.85
validateCredentialsFunction · 0.85
validateTargetUrlFunction · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected