@flemist/test-variants 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { VariantsArgs, TestVariantsSetArgs, TestVariantsCall, TestVariantsCallParams } from './test-variants/createTestVariants';
|
|
2
|
+
export { createTestVariants } from './test-variants/createTestVariants';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IAbortSignalFast } from '@flemist/abort-controller-fast';
|
|
2
|
-
declare type VariantsArgs<TArgs> = {
|
|
2
|
+
export declare type VariantsArgs<TArgs> = {
|
|
3
3
|
[key in keyof TArgs]: TArgs[key][] | ((args: TArgs) => TArgs[key][]);
|
|
4
4
|
};
|
|
5
5
|
declare type PromiseOrValue<T> = Promise<T> | T;
|
|
6
|
-
declare type TestVariantsCall<TArgs> = (callParams?: TestVariantsCallParams<TArgs>) => PromiseOrValue<number>;
|
|
7
|
-
declare type TestVariantsSetArgs<TArgs> = <TAdditionalArgs>(args: VariantsArgs<{
|
|
6
|
+
export declare type TestVariantsCall<TArgs> = (callParams?: TestVariantsCallParams<TArgs>) => PromiseOrValue<number>;
|
|
7
|
+
export declare type TestVariantsSetArgs<TArgs> = <TAdditionalArgs>(args: VariantsArgs<{
|
|
8
8
|
[key in (keyof TAdditionalArgs | keyof TArgs)]: key extends keyof TArgs ? TArgs[key] : key extends keyof TAdditionalArgs ? TAdditionalArgs[key] : never;
|
|
9
9
|
}>) => TestVariantsCall<TArgs>;
|
|
10
10
|
export declare type TestVariantsCallParams<TArgs> = {
|