onrails
    Preparing search index...
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A

      Parameters

      Returns A

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B

      Parameters

      Returns B

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C

      Parameters

      Returns C

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C
      • D

      Parameters

      Returns D

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C
      • D
      • E

      Parameters

      • input: I
      • step1: UnaryStep<Railway<RailwayInput<I>, never, "sync">, A>
      • step2: UnaryStep<A, B>
      • step3: UnaryStep<B, C>
      • step4: UnaryStep<C, D>
      • step5: UnaryStep<D, E>

      Returns E

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C
      • D
      • E
      • F

      Parameters

      • input: I
      • step1: UnaryStep<Railway<RailwayInput<I>, never, "sync">, A>
      • step2: UnaryStep<A, B>
      • step3: UnaryStep<B, C>
      • step4: UnaryStep<C, D>
      • step5: UnaryStep<D, E>
      • step6: UnaryStep<E, F>

      Returns F

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C
      • D
      • E
      • F
      • G

      Parameters

      • input: I
      • step1: UnaryStep<Railway<RailwayInput<I>, never, "sync">, A>
      • step2: UnaryStep<A, B>
      • step3: UnaryStep<B, C>
      • step4: UnaryStep<C, D>
      • step5: UnaryStep<D, E>
      • step6: UnaryStep<E, F>
      • step7: UnaryStep<F, G>

      Returns G

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );
    • Functional companion to Railway — point-free composition of reusable workflow steps. Starts from Railway.context({ input }) and applies each step in order. Step factories live below: parseWith, fromSyncNamed, fromResultNamed, fromPromiseNamed, fromAsyncNamed, deriveNamed, requireNamed, parallelNamed, select.

      Type Parameters

      • I
      • A
      • B
      • C
      • D
      • E
      • F
      • G
      • H

      Parameters

      • input: I
      • step1: UnaryStep<Railway<RailwayInput<I>, never, "sync">, A>
      • step2: UnaryStep<A, B>
      • step3: UnaryStep<B, C>
      • step4: UnaryStep<C, D>
      • step5: UnaryStep<D, E>
      • step6: UnaryStep<E, F>
      • step7: UnaryStep<F, G>
      • step8: UnaryStep<G, H>

      Returns H

      const summary = railway(
      rawId,
      parseWith(IdSchema, toError).as("id"),
      fromPromiseNamed("row", ({ id }) => db.profiles.findFirst({ where: eq(profiles.id, id) }), toError),
      requireNamed("profile", "row", ({ id }) => ({ kind: "not_found" as const, id })),
      deriveNamed("normalized", ({ profile }) => normalizeProfile(profile)),
      select(({ normalized }) => toProfileSummary(normalized)),
      );