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

Method ok

src/common/result.ts:41–43  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

39 }
40
41 static ok<T>(value: T): Result<T> {
42 return new Result<T>(true, value);
43 }
44
45 static err<T>(error: string | Error): Result<T> {
46 return new Result<T>(false, error);

Callers 4

fromMethod · 0.80
resultFromJSONMethod · 0.80
mapMethod · 0.80
okFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected