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>
3 lines
160 B
TypeScript
3 lines
160 B
TypeScript
const { UserAccount, UserType } = require('./user.ts');
|
|
const account: typeof UserAccount = new UserAccount('john', 100, UserType.Admin);
|
|
console.log(account);
|