Skip to content

Commit

Permalink
fix(types): fix parameter name in suite definition (#56)
Browse files Browse the repository at this point in the history
* fix: type defs for a `suite` takes a context

* chore: the context should also probably be a partial

* chore: actually, lets just forward.
  • Loading branch information
maraisr committed Nov 2, 2020
1 parent 30c10e0 commit d2f2504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.d.ts
Expand Up @@ -19,5 +19,5 @@ declare namespace uvu {
type Context = Record<string, any>;
export const test: uvu.Test<Context>;
export type Callback<T=Context> = uvu.Callback<T>;
export function suite<T=Context>(title?: string, suite?: T): uvu.Test<T>;
export function suite<T=Context>(title?: string, context?: T): uvu.Test<T>;
export function exec(bail?: boolean): Promise<void>;

0 comments on commit d2f2504

Please sign in to comment.