Skip to content

Latest commit

 

History

History
99 lines (54 loc) · 1.79 KB

query.md

File metadata and controls

99 lines (54 loc) · 1.79 KB

selenidejsQuery

Class: Query <T, R>

We use queries to perform an async query on entity of type T, i.e. get something from entity. So a query can pass and return something of type R or failed with Error correspondingly.

Type parameters

T

R

Hierarchy

Implements

  • Fn‹T, R›

Index

Constructors

Properties

Methods

Constructors

constructor

+ new Query(description: any, fn: any): Query

Defined in lib/wait.ts:41

Parameters:

Name Type
description any
fn any

Returns: Query

Properties

Private description

description: string

Defined in lib/wait.ts:40


Private fn

fn: Lambda‹T, R›

Defined in lib/wait.ts:41

Methods

call

call(entity: T): Promise‹R›

Implementation of Fn

Defined in lib/wait.ts:48

Parameters:

Name Type
entity T

Returns: Promise‹R›


toString

toString(): string

Defined in lib/wait.ts:52

Returns: string