Closed remcohaszing closed 3 years ago
Thanks 🙏
Thanks @remcohaszing . I see you already contributed to the fake-timers types in DefinitelyTyped, so I guess we'll soon reach feature parity 😄 That being said, I did see several errors in the Sinon types (for core) in the DefinitelyTyped repo when I contributed some months back, so it's wise not to trust everything there (just noting it).
Is there an ETA when this will be released? I think this is holding back a lot of people from uprading from 6.x.
This has been published to the npm registry as @sinonjs/fake-timers@7.0.4
Is there an ETA when this will be released? I think this is holding back a lot of people from uprading from 6.x.
I was enjoying a bit of vacation around Easter :)
Purpose (TL;DR) - mandatory
Make generated TypeScript tyoe definitions usable. My goal was to make the types usable in a typical situation:
My goal was not to provide perfect types. I.e.
any
andFunction
types are used and many docs are missing, because I’m not 100% sure what everything does.Background (Problem in detail) - optional
Closes #356
Solution - optional
I added the
Clock
type definition. This is returned by bothcreateClock()
andinstall()
.To aid reviewers, this is the generated
.d.ts
file after this merge request: