Options
All
  • Public
  • Public/Protected
  • All
Menu

This is a user class and is used to give structure to the input

Hierarchy

  • User

Index

Constructors

constructor

  • new User(obj: Partial<Omit<User, "DateOfBirth"> & { DateOfBirth: string | Date }>): User
  • takes an input object and optionally modifies the types/values of the input if they are of the incorrect type or value.

    Parameters

    • obj: Partial<Omit<User, "DateOfBirth"> & { DateOfBirth: string | Date }>

      the raw object that should be changed into a user model

    Returns User

Properties

DateOfBirth

DateOfBirth: Date

FavoriteColor

FavoriteColor: string

FirstName

FirstName: string

Gender

Gender: string

LastName

LastName: string

MiddleInitial

MiddleInitial: string

Generated using TypeDoc