Skip to content

Commit

Permalink
🐞 Fix: Types - Fix TS Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Jan 18, 2023
1 parent 814d631 commit c909a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** wrapper func for setState that returns a promise */
// eslint-disable-next-line consistent-this
export function setStateAsync<T>(
export function setStateAsync<T extends {}>(
that: React.Component,
newState: T | ((prevState: T) => T)
) {
Expand Down

0 comments on commit c909a6d

Please sign in to comment.