mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

PR-URL: https://github.com/nodejs/node/pull/55698 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com>
18 lines
268 B
TypeScript
18 lines
268 B
TypeScript
enum UserType {
|
|
Staff,
|
|
Admin,
|
|
};
|
|
|
|
class UserAccount {
|
|
name: string;
|
|
id: number;
|
|
type: UserType;
|
|
|
|
constructor(name: string, id: number, type: UserType) {
|
|
this.name = name;
|
|
this.id = id;
|
|
this.type = type;
|
|
}
|
|
}
|
|
|
|
export { UserAccount, UserType };
|