Closed pioupia closed 1 year ago
We can access to the ClientStatus value from TypeScript because of the type. But, after the compile with TSC, an error appears:
ClientStatus
if (this.client.status === net_ipc_1.ClientStatus.READY) TypeError: Cannot read properties of undefined (reading 'READY')
because the ClientStatus values were never export.
changed it to const enum, check if it works now npm i timotejroiko/net-ipc
npm i timotejroiko/net-ipc
Yeah, thats work fine, thank you!
We can access to the
ClientStatus
value from TypeScript because of the type. But, after the compile with TSC, an error appears:because the
ClientStatus
values were never export.