Skip to content

Commit

Permalink
types(vest): Export StaticSuite type
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 29, 2024
1 parent 8f400a0 commit 4407656
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/vest/src/suite/staticSuite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { TTypedMethods, getTypedMethods } from 'getTypedMethods';
export function staticSuite<
F extends TFieldName = string,
G extends TGroupName = string,
T extends CB = CB
T extends CB = CB,
>(suiteCallback: T): StaticSuite<F, G, T> {
return assign(
(...args: Parameters<T>) => {
Expand All @@ -38,20 +38,20 @@ export function staticSuite<
{
dump: suite.dump,
},
result
)
result,
),
);
},
{
...getTypedMethods<F, G>(),
}
},
);
}

type StaticSuite<
export type StaticSuite<
F extends TFieldName = string,
G extends TGroupName = string,
T extends CB = CB
T extends CB = CB,
> = ((...args: Parameters<T>) => SuiteRunResult<F, G> & {
dump: CB<TIsolateSuite>;
}) &
Expand Down
4 changes: 2 additions & 2 deletions packages/vest/src/vest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { include } from 'include';
import { mode } from 'mode';
import { omitWhen } from 'omitWhen';
import { skipWhen } from 'skipWhen';
import { staticSuite } from 'staticSuite';
import { staticSuite, StaticSuite } from 'staticSuite';
import { suiteSelectors } from 'suiteSelectors';
import { test } from 'test';
import { warn } from 'warn';
Expand All @@ -40,4 +40,4 @@ export {
Modes,
};

export type { SuiteResult, SuiteRunResult, SuiteSummary, Suite };
export type { SuiteResult, SuiteRunResult, SuiteSummary, Suite, StaticSuite };

2 comments on commit 4407656

@vercel
Copy link

@vercel vercel bot commented on 4407656 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest-next – ./website

vest-next-ealush.vercel.app
vest-next-git-latest-ealush.vercel.app
vest-website.vercel.app
vest-next.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4407656 Jan 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vest – ./website

vestjs.dev
vest-git-latest-ealush.vercel.app
www.vestjs.dev
vest-ealush.vercel.app
vest.vercel.app

Please sign in to comment.