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

Function error

typescript/src/result.ts:30–32  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

28 * @returns An `Error` object.
29 */
30export function error(message: string): Error {
31 return { success: false, message };
32}
33
34/**
35 * Obtains the value associated with a successful `Result<T>` or throws an exception if

Callers 5

completeFunction · 0.90
translateFunction · 0.90
validateFunction · 0.90
validateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected