MCPcopy
hub / github.com/generalaction/emdash / err

Function err

packages/shared/src/result/index.ts:36–36  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

34
35export const ok = <T>(data: T = undefined as T): Ok<T> => ({ success: true, data });
36export const err = <E>(error: E): Err<E> => ({ success: false, error });
37
38// ---------------------------------------------------------------------------
39// Tagged errors with a typed, serializable cause chain

Callers 15

ensureRepositoryMethod · 0.90
cloneRepositoryMethod · 0.90
fetchMethod · 0.90
addRemoteMethod · 0.90
createBranchMethod · 0.90
deleteBranchMethod · 0.90
fetchPrForReviewMethod · 0.90
publishBranchMethod · 0.90
stageMethod · 0.90
stageAllMethod · 0.90
unstageMethod · 0.90
unstageAllMethod · 0.90

Calls

no outgoing calls

Tested by 2

statEntryFromFunction · 0.72
probeMethod · 0.72