onrails
    Preparing search index...
    • Observe the Ok value for side effects (logging, metrics) without changing the carried value. Passes Err through untouched.

      Type Parameters

      • T
      • E

      Parameters

      Returns Result<T, E>

      pipe(
      parseConfig(raw),
      tap((cfg) => log.info({ msg: "parsed", name: cfg.name })),
      flatMap(validate),
      );
    • Observe the Ok value for side effects (logging, metrics) without changing the carried value. Passes Err through untouched.

      Type Parameters

      • T

      Parameters

      • fn: (value: T) => void

      Returns <E>(result: Result<T, E>) => Result<T, E>

      pipe(
      parseConfig(raw),
      tap((cfg) => log.info({ msg: "parsed", name: cfg.name })),
      flatMap(validate),
      );