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

Function some

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

Source from the content-addressed store, hash-verified

703 type Option<T> = { kind: "some"; value: T } | { kind: "none" };
704
705 const some = <T>(value: T): Option<T> => ({ kind: "some", value });
706 const none: Option<never> = { kind: "none" };
707
708 const safeDivide2 = (a: number, b: number): Effected<never, Option<number>> =>

Callers 2

safeDivide2Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected