Skip to content

Commit 09a96d1

Browse files
authored
fix(types) Correct overload order for act without strictNullChecks (#622)
1 parent 18f7913 commit 09a96d1

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,15 @@
547547
"contributions": [
548548
"maintenance"
549549
]
550+
},
551+
{
552+
"login": "andyrooger",
553+
"name": "andyrooger",
554+
"avatar_url": "https://avatars.githubusercontent.com/u/420834?v=4",
555+
"profile": "https://github.com/andyrooger",
556+
"contributions": [
557+
"code"
558+
]
550559
}
551560
],
552561
"skipCi": true,

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
244244
</tr>
245245
<tr>
246246
<td align="center"><a href="https://matan.io"><img src="https://avatars.githubusercontent.com/u/12711091?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matan Borenkraout</b></sub></a><br /><a href="#maintenance-MatanBobi" title="Maintenance">🚧</a></td>
247+
<td align="center"><a href="https://github.com/andyrooger"><img src="https://avatars.githubusercontent.com/u/420834?v=4?s=100" width="100px;" alt=""/><br /><sub><b>andyrooger</b></sub></a><br /><a href="https://github.com/testing-library/react-hooks-testing-library/commits?author=andyrooger" title="Code">💻</a></td>
247248
</tr>
248249
</table>
249250

src/types/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export type RenderHookOptions<TProps> = {
6464
}
6565

6666
export type Act = {
67-
(callback: () => void | undefined): void
6867
(callback: () => Promise<void | undefined>): Promise<undefined>
68+
(callback: () => void | undefined): void
6969
}
7070

7171
export type CleanupCallback = () => Promise<void> | void

0 commit comments

Comments
 (0)