tapjs/tap-parser

TypeScript typings for TapJS and/or tap-parser

Closed this issue · 1 comments

Hey :)

I tried this

npm install -D @types/tap-parser

to no avail. Is there a way to get typings for this package? What's the best way

I am definitely looking for a TypeScript definition for "testpoint":

 p.on('assert', function (testpoint) {

 });

thx

I have not investigated how to get typings for this package.

As with node-tap, I'm happy to accept a pull request that adds type information, provided:

  1. The type information covers the public API completely.
  2. There is a test which will fail if the API surface changes without updating the type information. (Adding a devDep on typescript is fine. Adding more work than running npm test is not fine.)
  3. Apart from updating the type information when it breaks (as detected by the test), no other work is required from me.

I realize it would be easier for typescript users if I would instead just rewrite this module in typescript, but I prefer JavaScript.