Skip to content

Commit

Permalink
fix(types): export Test interface (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr authored Nov 2, 2020
1 parent 3ca31c7 commit 1772435
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ declare namespace uvu {
}

type Context = Record<string, any>;
export const test: uvu.Test<Context>;

export type Test<T=Context> = uvu.Test<T>;
export type Callback<T=Context> = uvu.Callback<T>;

export const test: uvu.Test<Context>;
export function suite<T=Context>(title?: string, context?: T): uvu.Test<T>;
export function exec(bail?: boolean): Promise<void>;

0 comments on commit 1772435

Please sign in to comment.