@cucumber/node
    Preparing search index...

    Type Alias AttachFunction

    AttachFunction: (
        data: Readable | Buffer | string,
        options: AttachmentOptions,
    ) => Promise<void>

    Capture an attachment

    Type declaration

      • (data: Readable | Buffer | string, options: AttachmentOptions): Promise<void>
      • Parameters

        • data: Readable | Buffer | string

          the content to attach, as a stream, buffer or just a plain string

        • options: AttachmentOptions

          declare more information about this attachment

        Returns Promise<void>