Y
Hacker News
new
|
ask
|
show
|
jobs
by
shados
2329 days ago
You can use private to do it OO/Java style, but you don't need typescript for that: ES6 modules let you encapsulate stuff just fine without any type features.