borgar / numfmt

Full ECMA-376 number and date formatting in JavaScript
40 stars 9 forks source link

Add "numfmt.d.ts" to package.json as types entry #38

Closed fw6 closed 5 months ago

rmdort commented 1 year ago

Can we get this merged ? Very helpful to have a typescript definition.

borgar commented 1 year ago

Sorry for the delay, I've been considering my options here as well as little time to spare.

The work here looks really good, but:

I understand the need for types and would like to add them, but I think it needs to be in a form where I can manage them. So my plan at the moment is to redo the interface and add JSDoc types as I go along, basing them on the work here.

If you are impatient then there is of course nothing stopping you from adding and maintaining types over at DefinitelyTyped while the package does not have them. But I really do intend to address this asap.