Hi,
Suggestion from discussion fastify/fastify/issues/649
I'm wondering if PR would be accepted if pinojs type definitions were moved from DefinitelyTyped to this package
This team is not maintaining these typings files.
We are not typescript users, so it will be hard for us to maintain them.
If someone wants to join the team and maintain them within this repo, I鈥檇 be happy. Otherwise, I鈥檇 prefer if we avoid them completely.
I am using TypeScript a lot, I might be able to help with that if necessary. (I believe the DefinitelyTyped definitions for this project are outdated anyway.)
Thanks @tniessen
I'm also investigating fastify and pino for my next project, and would also love to help maintain type definitions.
I鈥檓 +1 if you want to send a PR, let鈥檚 check with the rest of the team
@jsumners @davidmarkclements what do you think?
You know my opinion 馃槈
If someone wants to actually maintain them, fine. I just really wish my editor would quit going to the TS definitions, when they are included, instead of the actual source code when I use the corresponding shortcut.
Discussion is still going on at fastify/fastify/issues/649
@nwoltman raised some good points about retaining typings in @types/projectname:
- We wouldn't need to worry about updating typings when making changes or when releasing a new version of Fastify since that can be done separately (although this could mean TypeScript users will have to wait for updates to the typings after a new release)
- We'd never need to release a new version of Fastify just to update/fix typings
We can wait to find out results of that discussion before making a decision.
if @trivikr and @tniessen are both interested in actively maintaining TS definitions then
I'm all for it 鈥撀營 believe in making pino accessible in as many ecosystems as possible when plausible
However, the moment @trivikr and @tniessen stop maintaining them (either officially or they become outdated) and no one else picks up the torch, I would be looking at removing them again
As @mcollina said, we are not TS users (and some might say we're TS averse) 鈥撀燽ut we'd love to have you guys collaborating from a TS perspective (and if you're interested may invite you to associated modules - e.g. fast-safe-stringify, for TS maintenance)
@davidmarkclements Sounds good!
Since pino uses pure JavaScript, it would be better to host it's type definitions in DefinitelyTyped (like how it currently is)
I'll sync with @tniessen on how we can update the current type definitions
After the long discussion in fastify/fastify/issues/649, the team concluded in fastify/fastify/pull/669 to retain the typings within the project.
Would pino maintainers also like to follow the same approach?
Tagging @psnider and @BendingBender who're current maintainers of pino type definitions in DefinitelyTyped
I'm happy for the same approach 馃憤
If there are people willing to maintain it in here, I'm 馃憤 . Otherwise it can live in @types/pino.
I abstain.
I wrote the original TypeScript type declarations for pino.
And as a TypeScript user, it is slightly more convenient for me for the type declarations to reside in the project.
But if the maintainers are not working with TypeScript,
then I don't see the value for them maintaining the type declarations,
unless they also serve a documentation purpose.
Although I would be happy to help with maintenance of type declarations within the project,
it is probably easier to get other TypeScript community members to help with the type declarations if they are left in @types/pino.
In any case, the type declarations require some correct and current sample code in order to catch errors in the type declarations. When I worked on the declarations previously, I collaborated with @mcollina to clarify the type declarations, and to select the code for testing the declarations.
I think we can close this, the types would stay as they are.
Most helpful comment
@davidmarkclements Sounds good!
Since pino uses pure JavaScript, it would be better to host it's type definitions in DefinitelyTyped (like how it currently is)
I'll sync with @tniessen on how we can update the current type definitions