MCPcopy Index your code
hub / github.com/microsoft/TypeChat / success

Function success

typescript/src/result.ts:21–23  ·  view source on GitHub ↗
(data: T)

Source from the content-addressed store, hash-verified

19 * @returns A `Success<T>` object.
20 */
21export function success<T>(data: T): Success<T> {
22 return { success: true, data };
23}
24
25/**
26 * Returns an `Error` object.

Callers 6

completeFunction · 0.90
validateFunction · 0.90
createModuleTextFromJsonFunction · 0.90
validateFunction · 0.90
_handleMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected