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

Function ok

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

Source from the content-addressed store, hash-verified

178}
179
180export function ok<T>(value: T): Result<T> {
181 return Result.ok(value);
182}
183
184export function err<T>(error: string | Error): Result<T> {
185 return Result.err(error);

Callers

nothing calls this directly

Calls 1

okMethod · 0.80

Tested by

no test coverage detected