( value: unknown )
| 8 | const ME_URL = "http://localhost/api/v1/users/me"; |
| 9 | |
| 10 | const isProfileBody = ( |
| 11 | value: unknown |
| 12 | ): value is { email: string; firstName: string; lastName: string } => |
| 13 | value !== null && |
| 14 | typeof value === "object" && |
| 15 | "email" in value && |
| 16 | typeof value.email === "string" && |
| 17 | "firstName" in value && |
| 18 | typeof value.firstName === "string" && |
| 19 | "lastName" in value && |
| 20 | typeof value.lastName === "string"; |
| 21 | |
| 22 | const isMeBody = ( |
| 23 | value: unknown |
no outgoing calls
no test coverage detected