← Back to context

Comment by jitl

2 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.

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.