wrapito 13.4.0 → 13.5.0-beta1

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/index.d.cts CHANGED
@@ -62,7 +62,7 @@ interface WrapOptions<SetupOptions = DefaultUserSetupOptions> {
62
62
  interface WrapExtensionAPI {
63
63
  addResponses: (responses: Array<WrapResponse>) => unknown;
64
64
  }
65
- type Extension<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = <T>(extensionAPI: WrapExtensionAPI, args: T) => Wrap<UserInteraction>;
65
+ type Extension<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = <T>(extensionAPI: WrapExtensionAPI, args: T) => Wrap<UserInteraction> | void;
66
66
  type Extensions<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = {
67
67
  [key: string]: Extension<UserInteraction>;
68
68
  };
package/dist/index.d.ts CHANGED
@@ -62,7 +62,7 @@ interface WrapOptions<SetupOptions = DefaultUserSetupOptions> {
62
62
  interface WrapExtensionAPI {
63
63
  addResponses: (responses: Array<WrapResponse>) => unknown;
64
64
  }
65
- type Extension<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = <T>(extensionAPI: WrapExtensionAPI, args: T) => Wrap<UserInteraction>;
65
+ type Extension<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = <T>(extensionAPI: WrapExtensionAPI, args: T) => Wrap<UserInteraction> | void;
66
66
  type Extensions<UserInteraction extends InteractionDescriptor = InteractionDescriptor> = {
67
67
  [key: string]: Extension<UserInteraction>;
68
68
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wrapito",
3
- "version": "13.4.0",
3
+ "version": "13.5.0-beta1",
4
4
  "packageManager": "npm@10.8.2",
5
5
  "description": "🌯 🌯 Wrap you tests so that you can test both behaviour and components with less effort.",
6
6
  "type": "module",