@khanacademy/wonder-blocks-testing 8.0.13 → 8.0.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @khanacademy/wonder-blocks-testing
2
2
 
3
+ ## 8.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 43f6328d: Fix flow types
8
+
3
9
  ## 8.0.13
4
10
 
5
11
  ### Patch Changes
@@ -1,11 +1,6 @@
1
- /**
2
- * Flowtype definitions for data
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.21.0
5
- * @flow
6
- */
1
+ // @flow
7
2
  import * as React from "react";
8
- import type { TestHarnessAdapters, TestHarnessConfigs } from "./types";
3
+ import type {TestHarnessAdapters, TestHarnessConfigs} from "./types";
9
4
 
10
5
  /**
11
6
  * Create a test harness method for use with React components.
@@ -19,9 +14,9 @@ import type { TestHarnessAdapters, TestHarnessConfigs } from "./types";
19
14
  * @returns A test harness.
20
15
  */
21
16
  declare export var makeTestHarness: <TAdapters: TestHarnessAdapters>(
22
- adapters: TAdapters,
23
- defaultConfigs: TestHarnessConfigs<TAdapters>
24
- ) => <TProps: { ... }>(
25
- Component: React.ComponentType<TProps>,
26
- configs?: $Rest<TestHarnessConfigs<TAdapters>, {}> | void
27
- ) => React.AbstractComponent<React.PropsWithoutRef<TProps>, mixed>;
17
+ adapters: TAdapters,
18
+ defaultConfigs: TestHarnessConfigs<TAdapters>,
19
+ ) => <-TProps, +Instance = mixed>(
20
+ Component: React.AbstractComponent<TProps, Instance>,
21
+ configs?: $Shape<TestHarnessConfigs<TAdapters>>,
22
+ ) => React.AbstractComponent<TProps, Instance>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-testing",
3
- "version": "8.0.13",
3
+ "version": "8.0.14",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -0,0 +1,22 @@
1
+ // @flow
2
+ import * as React from "react";
3
+ import type {TestHarnessAdapters, TestHarnessConfigs} from "./types";
4
+
5
+ /**
6
+ * Create a test harness method for use with React components.
7
+ *
8
+ * This returns a test harness method that applies the default configurations
9
+ * to the given adapters, wrapping a given component.
10
+ * @param {TAdapters} adapters All the adapters to be supported by the returned
11
+ * test harness.
12
+ * @param {Configs<TAdapters>} defaultConfigs Default configuration values for
13
+ * the adapters.
14
+ * @returns A test harness.
15
+ */
16
+ declare export var makeTestHarness: <TAdapters: TestHarnessAdapters>(
17
+ adapters: TAdapters,
18
+ defaultConfigs: TestHarnessConfigs<TAdapters>,
19
+ ) => <-TProps, +Instance = mixed>(
20
+ Component: React.AbstractComponent<TProps, Instance>,
21
+ configs?: $Shape<TestHarnessConfigs<TAdapters>>,
22
+ ) => React.AbstractComponent<TProps, Instance>;