MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / success

Function success

app/src/utils/errorHandling/standardResponses.ts:11–13  ·  view source on GitHub ↗
(payload?: T)

Source from the content-addressed store, hash-verified

9export function success<T>(payload: T): { status: "success"; payload: T };
10export function success(payload?: undefined): { status: "success"; payload: undefined };
11export function success<T>(payload?: T) {
12 return { status: "success", payload };
13}
14
15export function standardResponseShape<T extends ZodTypeAny>(payloadShape = z.undefined() as T) {
16 return z.union([

Calls

no outgoing calls

Tested by

no test coverage detected