Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix types to work in both mocha and jasmine #64

Merged
merged 1 commit into from
Apr 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jasmine.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="expect-webdriverio/types/expect-webdriverio"/>

declare module jasmine {
interface Matchers<T> extends ExpectWebdriverIO.Matchers {}
interface AsyncMatchers<T, U> extends ExpectWebdriverIO.Matchers {}
interface Matchers<T> extends ExpectWebdriverIO.Matchers<any, T> {}
interface AsyncMatchers<T, U> extends ExpectWebdriverIO.Matchers<any, T> {}
}
2 changes: 1 addition & 1 deletion jest.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference types="expect-webdriverio/types/expect-webdriverio"/>

declare namespace jest {
interface Matchers<R, T> extends ExpectWebdriverIO.Matchers<R> { }
interface Matchers<R, T> extends ExpectWebdriverIO.Matchers<R, T> { }
}
2 changes: 1 addition & 1 deletion types/expect-webdriverio.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ declare namespace ExpectWebdriverIO {
gte?: number;
}

interface Matchers<R> {
interface Matchers<R, T> {
// ===== $ or $$ =====
/**
* `WebdriverIO.Element` -> `isDisplayed`
Expand Down