MCPcopy Create free account
hub / github.com/Snowflyt/tinyeffect / ok

Function ok

test/README.example.proof.ts:512–512  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

510 type Result<T, E> = { kind: "ok"; value: T } | { kind: "err"; error: E };
511
512 const ok = <T>(value: T): Result<T, never> => ({ kind: "ok", value });
513 const err = <E>(error: E): Result<never, E> => ({ kind: "err", error });
514
515 type TypeError = Effect.Error<"type">;

Callers 2

handleErrorAsResultFunction · 0.70
range4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected