batch-cluster
    Preparing search index...

    Type Alias Parser<T>

    Parser: (
        stdout: string,
        stderr: string | undefined,
        passed: boolean,
    ) => T | Promise<T>

    Invoked once per task.

    Type Parameters

    • T

    Type declaration

      • (stdout: string, stderr: string | undefined, passed: boolean): T | Promise<T>
      • Parameters

        • stdout: string

          the concatenated stream from stdin, stripped of the PASS or FAIL tokens from BatchProcessOptions.

        • stderr: string | undefined

          if defined, includes all text emitted to stderr.

        • passed: boolean

          true iff the PASS pattern was found in stdout.

        Returns T | Promise<T>

    an error if the Parser implementation wants to reject the task. It is valid to raise Errors if stderr is undefined.

    BatchProcessOptions