Skip to content

Commit c70fb6f

Browse files
authored
Add type to isEmailUsed in Avoid negative conditionals (#36)
add string type to email argument in `isEmailUsed`
1 parent 8f52daa commit c70fb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ if (isEmailNotUsed(email)) {
874874
**Good:**
875875

876876
```ts
877-
function isEmailUsed(email): boolean {
877+
function isEmailUsed(email: string): boolean {
878878
// ...
879879
}
880880

0 commit comments

Comments
 (0)