Skip to content

Commit

Permalink
Improve mapUserData return type
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiuszbachorski committed Jul 21, 2024
1 parent 45432f7 commit 81e7452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/firebase/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ export const mapUserData = async <T>(
})
})
const results = await Promise.all(promises)
return results.flat(1).filter(Boolean)
return results.flat(1).filter(Boolean) as Array<Exclude<T, null | undefined>>

Check warning on line 44 in modules/firebase/user.ts

View check run for this annotation

Codecov / codecov/patch

modules/firebase/user.ts#L43-L44

Added lines #L43 - L44 were not covered by tests
}

0 comments on commit 81e7452

Please sign in to comment.