File

libs/users/domain/src/lib/user.entity.ts

Index

Properties

Constructor

constructor(id: string, email: string, firstName: string | null, lastName: string | null)
Parameters :
Name Type Optional
id string No
email string No
firstName string | null No
lastName string | null No

Properties

Public Readonly email
Type : string
Public firstName
Type : string | null
Public Readonly id
Type : string
Public lastName
Type : string | null
export class User {
  // Class attributes can be declared and initialized directly in the constructor arguments
  constructor(
    public readonly id: string,
    public readonly email: string,
    public firstName: string | null,
    public lastName: string | null,
  ) {}
}

results matching ""

    No results matching ""