Files
DefinitelyTyped/types/chai-webdriverio/index.d.ts
Nikolai Orekhov 5b310b110f add types for chai-webdriverio (#21891)
* add types for chai-webdriverio

* fix lint warning and remove extra lint rules

* fix compilation

* added types from webdriverio

* try to fix build

* try to fix build
2018-01-02 17:36:22 -08:00

25 lines
821 B
TypeScript

// Type definitions for chai-webdriverio 0.4
// Project: https://github.com/marcodejongh/chai-webdriverio
// Definitions by: Nikolai Orekhov <https://github.com/sherlock1982>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="webdriverio" />
/// <reference types="chai" />
declare namespace Chai {
interface Assertion {
count: (count: number) => void;
focus: () => void;
text: (expected: string|number|RegExp) => void;
there: () => void;
value: (expected: string|number|RegExp) => void;
visible: () => void;
immediately: Assertion;
}
}
declare module 'chai-webdriverio' {
function chaiWebdriverIO(client: WebdriverIO.Client<void>, options?: any): (chai: any, utils: any) => void;
export = chaiWebdriverIO;
}