Skip to content

Commit

Permalink
fix(types): getting the types up to date
Browse files Browse the repository at this point in the history
re #385
  • Loading branch information
lgandecki committed Jun 30, 2020
1 parent 284d5f5 commit d9228c5
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions steps/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,70 @@
export interface Transform {
regexp: RegExp;
transformer(...arg: string[]): any;
useForSnippets?: boolean;
preferForRegexpMatch?: boolean;
name?: string;
typeName?: string; // deprecated
}

export function given(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function when(

export function given(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function then(

export function when(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function and(

export function when(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function but(

export function then(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function given(

export function then(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function when(

export function and(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function then(
export function and(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function and(

export function but(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;
export function but(
expression: RegExp | string,
config: { timeout?: number },
implementation: (...args: any[]) => void
): void;

export function defineStep(
expression: RegExp | string,
implementation: (...args: any[]) => void
): void;
export function defineParameterType(): void;
export function defineParameterType(parameterType: Transform): void;

// Aliased versions of the above funcs.
export function Given(
Expand Down

0 comments on commit d9228c5

Please sign in to comment.