import {Transform} from '@serenity-js/core/lib/screenplay/questions'
public class | source

Transform

this class is experimental.

Static Method Summary

Static Public Methods
public static

the(questions: Answerable | Array, transformation: Function): *

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

answeredBy(actor: AnswersQuestions & UsesAbilities): Promise

public

as(description: string): Transform

Overrides the default Transform#toString representation of this object.

public

toString(): *

Static Public Methods

public static the(questions: Answerable | Array, transformation: Function): * source

Params:

NameTypeAttributeDescription
questions Answerable | Array
transformation Function

Returns:

*

Public Constructors

public constructor() source

Public Methods

public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise source

Params:

NameTypeAttributeDescription
actor AnswersQuestions & UsesAbilities

Returns:

Promise

public as(description: string): Transform source

Overrides the default Transform#toString representation of this object.

Params:

NameTypeAttributeDescription
description string

Returns:

Transform

public toString(): * source

Returns:

*