Y
Hacker News
new
|
ask
|
show
|
jobs
by
jitl
309 days ago
It’s great in TypeScript. In TypeScript your source can have inferred types returned, and then use a build step to produce resolved typings files (.d.ts) for distribution that have the fully specified type.
1 comments
thrance
309 days ago
Ah, true, now that you mention it. I feel like it's the best of both worlds, you get type inference
and
it gets documented automatically.
link