Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Writer<unknown, unknown>
    • StringWriter

Index

Constructors

constructor

  • new StringWriter(value: unknown, input: string, index?: number): StringWriter
  • Parameters

    • value: unknown
    • input: string
    • Optional index: number

    Returns StringWriter

Properties

Readonly index

index: number

Readonly input

input: string

Readonly value

value: unknown

Methods

andThen

  • Type parameters

    • O2

    Parameters

    Returns Writer<never, O2>

asDone

  • asDone<I2>(): Writer<I2, unknown>
  • Type parameters

    • I2

    Returns Writer<I2, unknown>

asError

  • asError<I2, O2>(): Writer<I2, O2>
  • Type parameters

    • I2

    • O2

    Returns Writer<I2, O2>

bind

  • bind(): unknown
  • Returns unknown

feed

  • feed(input: unknown): Writer<unknown, unknown>
  • Parameters

    • input: unknown

    Returns Writer<unknown, unknown>

fork

  • fork(condition: unknown): Writer<unknown, unknown>
  • Parameters

    • condition: unknown

    Returns Writer<unknown, unknown>

isCont

  • isCont(): boolean
  • Returns boolean

isDone

  • isDone(): boolean
  • Returns boolean

isError

  • isError(): boolean
  • Returns boolean

pull

  • Parameters

    Returns Writer<unknown, unknown>

trap

  • trap(): Error
  • Returns Error

Static done

  • done<I, O>(value: O): Writer<I, O>
  • Type parameters

    • I

    • O

    Parameters

    • value: O

    Returns Writer<I, O>

Static end

  • Type parameters

    • I

    Returns Writer<I, never>

Static error

  • error<I, O>(error: Error): Writer<I, O>
  • Type parameters

    • I

    • O

    Parameters

    • error: Error

    Returns Writer<I, O>

Static write

  • write(output: Output<unknown>, value: unknown, input: string, index?: number): Writer<unknown, unknown>
  • Parameters

    • output: Output<unknown>
    • value: unknown
    • input: string
    • Optional index: number

    Returns Writer<unknown, unknown>

Generated using TypeDoc