astronomia icon indicating copy to clipboard operation
astronomia copied to clipboard

Stance to TypeScript?

Open 1valdis opened this issue 1 year ago • 3 comments

Hi there. Currently there's no TypeScript typings which makes the library harder to work with. Would you be interested in rewrite of the library to TypeScript?

1valdis avatar Jun 02 '24 10:06 1valdis

Hi @1valdis, I am personally not interested in rewriting this lib to TS as IMO this is a hell of work. I understand the need of typing's from a DX perspective and would prefer jsdoc typing's instead. For me the TS compiler is here not in its way when working with unit tests aso. Choosing JS for me is because it is a scripted language. No need for waiting on compilers to finish.

commenthol avatar Jun 05 '24 19:06 commenthol

@commenthol So, do you not want to see any TypeScript initiative here at all, or if there is someone who wants to do that themselves, they can implement this on their own and you'd welcome this contribution? If latter, then you'd rather see a rewrite or just .d.ts typings?

1valdis avatar Jun 06 '24 15:06 1valdis

Hi @1valdis, I'd like to say that I won't maintain a refactoring using typescript files within this project. If you like to add jsdoc comments or .d.ts typescript declarations feel free to do so.

commenthol avatar Jun 23 '24 08:06 commenthol