Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
fix: "test" function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Apr 18, 2019
1 parent d0106cd commit a5f7926
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ export const assert: <Left, Right>(
export const _: any;

/** Same as "it" */
export const test:
| ((fn: () => void) => void)
| ((name?: string, fn?: () => void) => void);
export const test: {
(fn: () => void): void;
(name?: string, fn?: () => void): void;
};

/** The "it" of spec.ts */
export const it: typeof test;
Expand Down

0 comments on commit a5f7926

Please sign in to comment.