mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-05-09 12:03:33 +00:00
Add type to isEmailUsed in Avoid negative conditionals (#36)
add string type to email argument in `isEmailUsed`
This commit is contained in:
parent
8f52daaea4
commit
c70fb6fd8a
1 changed files with 1 additions and 1 deletions
|
@ -874,7 +874,7 @@ if (isEmailNotUsed(email)) {
|
|||
**Good:**
|
||||
|
||||
```ts
|
||||
function isEmailUsed(email): boolean {
|
||||
function isEmailUsed(email: string): boolean {
|
||||
// ...
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue