node/test/fixtures/module-hooks/log-user.mts
Joyee Cheung e5bb6c2303
module: implement module.registerHooks()
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>
2024-12-10 20:30:58 +01:00

4 lines
176 B
TypeScript

import { UserAccount, UserType } from './user.ts';
import { log } from 'node:console';
const account: UserAccount = new UserAccount('john', 100, UserType.Admin);
log(account);