This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.

20 lines
496 B
TypeScript

import type { EntityOptions } from "./_Entity"
import { Entity } from "./_Entity"
export interface UserOptions extends EntityOptions {
email: string
displayName: string
}
export class User extends Entity implements UserOptions {
public email: UserOptions["email"]
public displayName: UserOptions["displayName"]
public constructor(options: UserOptions) {
const { id, email, displayName } = options
super({ id })
this.email = email
this.displayName = displayName
}
}