tarlatan
    Preparing search index...

    Function streamLineWith

    • Reads one line of a stream whose events of the types in outcomeTypes decode with decode; see StreamLine. Each failure's reason names the line.

      Type Parameters

      • A

      Parameters

      • outcomeTypes: readonly string[]
      • decode: (value: unknown) => Result<A, { message: string }>

      Returns (line: string) => StreamLine<A>