MCPcopy Create free account
hub / github.com/effect-app/libs / getFailures

Function getFailures

repos/effect/packages/effect/src/Record.ts:862–874  ·  view source on GitHub ↗
(
  self: ReadonlyRecord<K, Result<A, E>>
)

Source from the content-addressed store, hash-verified

860 * **Example** (Extracting Result successes)
861 *
862 * ```ts import.meta.vitest
863 * import { Record, Result } from "effect"
864 *
865 * Record.getSuccesses({
866 * a: Result.succeed(1),
867 * b: Result.fail("err"),
868 * c: Result.succeed(2)
869 * }) // => { a: 1, c: 2 }
870 * ```
871 *
872 * @category filtering
873 * @since 4.0.0
874 */
875export const getSuccesses = <K extends string, A, E>(
876 self: ReadonlyRecord<K, Result<A, E>>
877): Record<string, A> => {

Callers

nothing calls this directly

Calls 2

emptyFunction · 0.70
keysFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…