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

Function err

test/README.example.proof.ts:513–513  ·  view source on GitHub ↗
(error: E)

Source from the content-addressed store, hash-verified

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">;
516 const typeError: EffectFactory<TypeError> = error("type");

Callers 2

handleErrorAsResultFunction · 0.70
range4Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected