News for hackers. Stuff that matters.
Re:Ask HN: What “new” programming languages will you be usin... by orif on Tuesday January 03, 2017 @02:11PM (#13312050)
For packages with default export, you can use synthetic imports options in tsconfig.

For non-js imports, you can create global module declarations (like the below snippet):

declare module "*.css" { const value: any; export { value }; export default value; }

But you will still need to use some bundler tool like webpack. It will just stop TypeScript from complaining.

Type definitions are the biggest issue even today, but things are much better now. Most popular npm packages already have type definitions, but if you need some exotic package, then you can write your own defnitions (probably only necessary bits).

Re:Ask HN: What “new” programming languages will you be usin... by grardb on Tuesday January 03, 2017 @03:14PM (#13312630)
Oh nice, thanks for the tips! Those things will make my code so much nicer :D I am indeed using webpack, so that shouldn't be an issue (unless it doesn't work in conjunction with `target: 'node'`). Crossing my fingers!