|
| 1 | +export interface Transform { |
| 2 | + regexp: RegExp; |
| 3 | + transformer(...arg: string[]): any; |
| 4 | + useForSnippets?: boolean; |
| 5 | + preferForRegexpMatch?: boolean; |
| 6 | + name?: string; |
| 7 | + typeName?: string; // deprecated |
| 8 | +} |
| 9 | + |
1 | 10 | export function given( |
2 | 11 | expression: RegExp | string, |
| 12 | + config: { timeout?: number }, |
3 | 13 | implementation: (...args: any[]) => void |
4 | 14 | ): void; |
5 | | -export function when( |
| 15 | + |
| 16 | +export function given( |
6 | 17 | expression: RegExp | string, |
7 | 18 | implementation: (...args: any[]) => void |
8 | 19 | ): void; |
9 | | -export function then( |
| 20 | + |
| 21 | +export function when( |
10 | 22 | expression: RegExp | string, |
| 23 | + config: { timeout?: number }, |
11 | 24 | implementation: (...args: any[]) => void |
12 | 25 | ): void; |
13 | | -export function and( |
| 26 | + |
| 27 | +export function when( |
14 | 28 | expression: RegExp | string, |
15 | 29 | implementation: (...args: any[]) => void |
16 | 30 | ): void; |
17 | | -export function but( |
| 31 | + |
| 32 | +export function then( |
18 | 33 | expression: RegExp | string, |
| 34 | + config: { timeout?: number }, |
19 | 35 | implementation: (...args: any[]) => void |
20 | 36 | ): void; |
21 | | -export function given( |
| 37 | + |
| 38 | +export function then( |
22 | 39 | expression: RegExp | string, |
23 | | - config: { timeout?: number }, |
24 | 40 | implementation: (...args: any[]) => void |
25 | 41 | ): void; |
26 | | -export function when( |
| 42 | + |
| 43 | +export function and( |
27 | 44 | expression: RegExp | string, |
28 | 45 | config: { timeout?: number }, |
29 | 46 | implementation: (...args: any[]) => void |
30 | 47 | ): void; |
31 | | -export function then( |
| 48 | +export function and( |
32 | 49 | expression: RegExp | string, |
33 | | - config: { timeout?: number }, |
34 | 50 | implementation: (...args: any[]) => void |
35 | 51 | ): void; |
36 | | -export function and( |
| 52 | + |
| 53 | +export function but( |
37 | 54 | expression: RegExp | string, |
38 | 55 | config: { timeout?: number }, |
39 | 56 | implementation: (...args: any[]) => void |
40 | 57 | ): void; |
41 | 58 | export function but( |
42 | 59 | expression: RegExp | string, |
43 | | - config: { timeout?: number }, |
44 | 60 | implementation: (...args: any[]) => void |
45 | 61 | ): void; |
| 62 | + |
46 | 63 | export function defineStep( |
47 | 64 | expression: RegExp | string, |
48 | 65 | implementation: (...args: any[]) => void |
49 | 66 | ): void; |
50 | | -export function defineParameterType(): void; |
| 67 | +export function defineParameterType(parameterType: Transform): void; |
51 | 68 |
|
52 | 69 | // Aliased versions of the above funcs. |
53 | 70 | export function Given( |
|
0 commit comments