Skip to content

Commit

Permalink
Fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark1626 committed Jul 19, 2020
1 parent 2c65b21 commit 47fc1c8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/jest-types/src/Global.ts
Expand Up @@ -36,10 +36,12 @@ export type EachTestFn<A extends TestCallback> = (
// TODO: Get rid of this at some point
type Jasmine = {_DEFAULT_TIMEOUT_INTERVAL?: number; addMatchers: Function};

type Each<A extends TestCallback> = ((
table: EachTable,
...taggedTemplateData: Array<unknown>
) => (title: string, test: EachTestFn<A>, timeout?: number) => void) | (() => void);
type Each<A extends TestCallback> =
| ((
table: EachTable,
...taggedTemplateData: Array<unknown>
) => (title: string, test: EachTestFn<A>, timeout?: number) => void)
| (() => void);

export interface ItBase {
(testName: TestName, fn: TestFn, timeout?: number): void;
Expand Down

0 comments on commit 47fc1c8

Please sign in to comment.