|
5 | 5 | IStepHookBody, |
6 | 6 | IParameterTypeDefinition, |
7 | 7 | IStepDefinitionBody, |
| 8 | + IHookOptions, |
8 | 9 | } from "./public-member-types"; |
9 | 10 |
|
10 | 11 | export { |
@@ -74,44 +75,44 @@ export function attach(data: string | ArrayBuffer, mediaType?: string) { |
74 | 75 | throw createUnimplemented(); |
75 | 76 | } |
76 | 77 |
|
77 | | -export function Before(options: { tags?: string }, fn: IHookBody): void; |
| 78 | +export function Before(options: IHookOptions, fn: IHookBody): void; |
78 | 79 | export function Before(fn: IHookBody): void; |
79 | 80 | export function Before( |
80 | 81 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
81 | | - optionsOrFn: IHookBody | { tags?: string }, |
| 82 | + optionsOrFn: IHookBody | IHookOptions, |
82 | 83 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
83 | 84 | maybeFn?: IHookBody |
84 | 85 | ) { |
85 | 86 | throw createUnimplemented(); |
86 | 87 | } |
87 | 88 |
|
88 | | -export function After(options: { tags?: string }, fn: IHookBody): void; |
| 89 | +export function After(options: IHookOptions, fn: IHookBody): void; |
89 | 90 | export function After(fn: IHookBody): void; |
90 | 91 | export function After( |
91 | 92 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
92 | | - optionsOrFn: IHookBody | { tags?: string }, |
| 93 | + optionsOrFn: IHookBody | IHookOptions, |
93 | 94 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
94 | 95 | maybeFn?: IHookBody |
95 | 96 | ) { |
96 | 97 | throw createUnimplemented(); |
97 | 98 | } |
98 | 99 |
|
99 | | -export function BeforeStep(options: { tags?: string }, fn: IStepHookBody): void; |
| 100 | +export function BeforeStep(options: IHookOptions, fn: IStepHookBody): void; |
100 | 101 | export function BeforeStep(fn: IStepHookBody): void; |
101 | 102 | export function BeforeStep( |
102 | 103 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
103 | | - optionsOrFn: IStepHookBody | { tags?: string }, |
| 104 | + optionsOrFn: IStepHookBody | IHookOptions, |
104 | 105 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
105 | 106 | maybeFn?: IStepHookBody |
106 | 107 | ) { |
107 | 108 | throw createUnimplemented(); |
108 | 109 | } |
109 | 110 |
|
110 | | -export function AfterStep(options: { tags?: string }, fn: IStepHookBody): void; |
| 111 | +export function AfterStep(options: IHookOptions, fn: IStepHookBody): void; |
111 | 112 | export function AfterStep(fn: IStepHookBody): void; |
112 | 113 | export function AfterStep( |
113 | 114 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
114 | | - optionsOrFn: IStepHookBody | { tags?: string }, |
| 115 | + optionsOrFn: IStepHookBody | IHookOptions, |
115 | 116 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
116 | 117 | maybeFn?: IStepHookBody |
117 | 118 | ) { |
|
0 commit comments