Skip to content

Packages  ›  trotsky  ›  StepSave

StepSave class

A step

Signature:

typescript
export declare class StepSave<P = StepBuilder, C = null, O = string> extends Step<P, C, O>

Extends: Step<P, C, O>

Constructors

Constructor

Modifiers

Description

(constructor)(agent, parent, path)

Initializes the StepSave instance with the given path.

Properties

Property

Modifiers

Type

Description

_path

protected

StepSavePath

Path of the JSON file to save the current output.

Methods

Method

Modifiers

Description

apply()

Applies the step logic to save the output to a JSON file.

clone(rest)

Clones the current step and returns a new instance with the same parameters.