Skip to content

Commit 4f0501e

Browse files
Esemesekthymikee
authored andcommitted
fix: Flow types (#16)
- [x] - Add flow to tests - [x] - Fix flow typings - [x] - Update documentation
1 parent d2e00f5 commit 4f0501e

File tree

7 files changed

+1160
-30
lines changed

7 files changed

+1160
-30
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ type ReactTestInstance = {
102102
};
103103
```
104104

105-
### `getByName: (name: string | React.Element<*>)`
105+
### `getByName: (name: string | React.ComponentType<*>)`
106106

107107
A method returning a `ReactTestInstance` with matching name – may be a string or React Element. Throws when no matches.
108108

109-
### `getAllByName: (name: string | React.Element<*>)`
109+
### `getAllByName: (name: string | React.ComponentType<*>)`
110110

111111
A method returning an array of `ReactTestInstance`s with matching name – may be a string or React Element.
112112

0 commit comments

Comments
 (0)