MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / err

Method err

src/common/result.ts:45–47  ·  view source on GitHub ↗
(error: string | Error)

Source from the content-addressed store, hash-verified

43 }
44
45 static err<T>(error: string | Error): Result<T> {
46 return new Result<T>(false, error);
47 }
48
49 static from<T>(values: Iterable<T | Result<T>>): Result<T>[] {
50 const result: Result<T>[] = [];

Callers 3

resultFromJSONMethod · 0.80
mapMethod · 0.80
errFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected