Closed t-richards closed 3 years ago
@t-richards thanks for the PR, but I would like you to open an issue first to discuss what is the problem first and what's the best way to solve it.
I don't see what the problem is right now? We don't use TS and I don't see why we should? I am genuinely asking, thanks.
Comment moved --> #26.
@t-richards yes please open an issue with your comment and let's continue the discussion there.
@t-richards, since you've done it, would you contribute also (maybe another PR) at least one test (converted or new) in TS?
Can tests be run by mocha
in "mixed" mode, i.e. some of them in TS and some in JS?
@sbordet I believe that mocha
can run mixed TypeScript / JavaScript tests.
That said, if the test conversion process from JS -> TS is somewhat straightforward, I think it might make sense to convert them all in one go and not bother with the mixed mode. I will try this out in a separate PR.
This PR:
.d.ts
) to the library.Testing
How I tested these type definitions locally:
test/
files from.js
->.ts
@types/node
,@types/mocha
,ts-node
,typescript
packagesconst
->let
mocha -r ts-node/register test/*.ts