Closed k-tten closed 3 years ago
The callback could use some typing instead of any Function. I believe this is the correct type for callback.
callback
unknown | Promise<unknown> means users can use async functions as well and still have type checking.
unknown | Promise<unknown>
The callback could use some typing instead of any Function. I believe this is the correct type for
callback
.unknown | Promise<unknown>
means users can use async functions as well and still have type checking.