mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-04-18 15:13:34 +00:00
Add type to isEmailUsed in Avoid negative conditionals
add string type to email argument in isEmailUsed
This commit is contained in:
parent
8f52daaea4
commit
b20355a7ec
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