normalize / mz

modernize node.js to current ECMAScript standards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript binding

olivr70 opened this issue · comments

Hi,

I love the idea of mz. I mainly use Typescript. Do you known if anyone has started writing a Type Definition for mz ?

I am OK to make one, but I'd rather not redo something existing and currently under work.

Olivier

That would be awesome, I would be very open to including the definition files in the repo as well 🙌

as long as someone who has access to this repo is open to maintain it, i don't mind.

OK, I started working on a type definition.

For the time being it will be hosted in olivr70/typings-mz. This may be simpler for the unit tests.

There's a comprehensive typings file for mz on DefinitelyTyped, authored by @ThomasHickman, that could probably be used with very little editing.

DefinitelyTyped definition files are considered high quality, and should probably be preferred over other sets of definition files. At this time, they seem well-maintained:

types published 5 months ago
0.0.32 is the latest of 17 releases

I recommend endorsing the DefinitelyTyped definition files and closing this issue.

I recommend endorsing the DefinitelyTyped definition files and closing this issue.

I think that DefinitelyTyped recommends distributing types with the library firsthand since that is the easiest to consume.

as long as someone who has access to this repo is open to maintain it, i don't mind.

I wrote most of my code in TS these days and have started to slowly add and maintain definitions to the libraries I'm maintaining. I would be happy to take responsibility for this 👍

I think that there is a documented approach on how to move from the DefinitevlyTyped repo onto upstream, hopefully I'll get some time to look at that soon 💯