docs: Update errorCodes ESM import and usage#5388
docs: Update errorCodes ESM import and usage#5388melroy89 wants to merge 2 commits intofastify:mainfrom
Conversation
| // ESM | ||
| import { errorCodes } from 'fastify' | ||
| import fastify from 'fastify' | ||
| fastify.errorCodes |
There was a problem hiding this comment.
Currently, it is not possible to do so.
Uzlopak
left a comment
There was a problem hiding this comment.
This PR is not adding any value.
Well actually.. It's showing how ESM errorCodes are currently implemented in fastify. Hence the documentation request. But we can also improve the code. Either way, the documentation is currently not reflecting how it now works. It's adding value if you want your documention saying how fastify is working. |
Like this: #5390 ? |
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Checklist
npm run testandnpm run benchmarkand the Code of conduct