Missing TypeScript types
@mcollina Is it too early to add types? How much breaking API changes are expected in this package in the nearby future?
go for them!
I'm adding a minimal version of types in this draft PR #71 , but I only added them because I needed types for testing a fix. They're not exposed in the package.json file, nor refined enough.
I prefer to not overdo them for this PR, but I could prepare a second one with a refined version, and expose them properly.
@mcollina I noticed that ThreadStream (the return type of transport(..)) is any. Is there a reason we do not just set it to be DestinationStream? That would match with what pino(options: ... , stream: DestinationStream) expects.
Because it's not.