StepResult
The result of applying a step. Contains either a new document or a failure value.
class StepResult { }
readonly failed: string | null;
§Properties
§Static Methods
§
fail(message: string): StepResult
[src]Create a failed step result.
§
Call Node.replace
with the given
arguments. Create a successful result if it succeeds, and a
failed one if it throws a ReplaceError
.
§
ok(doc: Node): StepResult
[src]Create a successful step result.