Skip to content

Commit 790abe7

Browse files
Alcedo Nathaniel De Guzman JrSimenB
Alcedo Nathaniel De Guzman Jr
authored andcommitted
Update flow typing for {only,it,describe,it.only}.each function arguments to accept either mixed or Array<mixed> (jestjs#6934)
1 parent 3c2a77d commit 790abe7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flow-typed/npm/jest_v23.x.x.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ declare var describe: {
922922
* @param {table} table of Test
923923
*/
924924
each(
925-
table: Array<Array<mixed>>
925+
table: Array<Array<mixed> | mixed>
926926
): (
927927
name: JestTestName,
928928
fn?: (...args: Array<any>) => ?Promise<mixed>
@@ -949,7 +949,7 @@ declare var it: {
949949
* @param {table} table of Test
950950
*/
951951
each(
952-
table: Array<Array<mixed>>
952+
table: Array<Array<mixed> | mixed>
953953
): (
954954
name: JestTestName,
955955
fn?: (...args: Array<any>) => ?Promise<mixed>
@@ -967,7 +967,7 @@ declare var it: {
967967
timeout?: number
968968
): {
969969
each(
970-
table: Array<Array<mixed>>
970+
table: Array<Array<mixed> | mixed>
971971
): (
972972
name: JestTestName,
973973
fn?: (...args: Array<any>) => ?Promise<mixed>
@@ -1003,7 +1003,7 @@ declare var it: {
10031003
* @param {table} table of Test
10041004
*/
10051005
each(
1006-
table: Array<Array<mixed>>
1006+
table: Array<Array<mixed> | mixed>
10071007
): (
10081008
name: JestTestName,
10091009
fn?: (...args: Array<any>) => ?Promise<mixed>

0 commit comments

Comments
 (0)