function isLoginUserRequest
isLoginUserRequest(obj: unknown): obj is LoginUserRequest

Checks whether obj is a LoginUserRequest. It checks the types only: a wrong name or password is the login route's answer to give.

Parameters

obj: unknown

Return Type

Usage

import { isLoginUserRequest } from "api/validators/user.ts";