-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed user service * more docs fixeS * fixed caps error * Finished services * formatted
- Loading branch information
1 parent
f67cb36
commit cf97d7c
Showing
4 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
export interface UserFormat { | ||
id: string; | ||
username: string; | ||
firstname: string; | ||
lastname: string; | ||
userId: string; | ||
name: string; | ||
email: string; | ||
} | ||
|
||
export function isValidUserFormat(u: UserFormat): boolean { | ||
if (typeof u.userId !== "string" || typeof u.name !== "string" || typeof u.email !== "string") { | ||
return false; | ||
} | ||
|
||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters