libs/users/domain/src/lib/user.entity.ts
Properties |
constructor(id: string, email: string, firstName: string | null, lastName: string | null)
|
Defined in libs/users/domain/src/lib/user.entity.ts:3
|
Public Readonly email |
Type : string
|
Defined in libs/users/domain/src/lib/user.entity.ts:7
|
Public firstName |
Type : string | null
|
Defined in libs/users/domain/src/lib/user.entity.ts:8
|
Public Readonly id |
Type : string
|
Defined in libs/users/domain/src/lib/user.entity.ts:6
|
Public lastName |
Type : string | null
|
Defined in libs/users/domain/src/lib/user.entity.ts:9
|
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,
) {}
}