-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.d.ts
30 lines (26 loc) · 1.02 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/// <reference types="cypress" />
declare namespace Cypress {
type ShadowCommandOptions = {
timeout?: Number;
};
type ShadowEventOptios = {
force?: Boolean;
bubbles?: Boolean;
cancelable?: Boolean;
composed?: Boolean;
};
type ShadowInputTypingOptions = {
delay?: Number;
};
interface Chainable<Subject> {
shadowClick(options?: ShadowEventOptios): Chainable<Subject>;
shadowContains(content: string, options?: ShadowCommandOptions): Chainable<Subject>;
shadowEq(index: number, options?: ShadowCommandOptions): Chainable<Subject>;
shadowFind(selector: string, options?: CommandOptions): Chainable<Subject>;
shadowFirst(options?: CommandOptions): Chainable<Subject>;
shadowGet(selector: string, options?: CommandOptions): Chainable<Subject>;
shadowLast(options?: CommandOptions): Chainable<Subject>;
shadowTrigger(eventName: string, options?: ShadowEventOptios): Chainable<Subject>;
shadowType(content: string, options?: ShadowInputTypingOptions): Chainable<Subject>;
}
}