Anna Bocharova
Anna Bocharova
> from javascript perspective, express don't care about the returned value of the handler, so returning something doesn't matter if it does not matter, not taken into account and not...
> compact syntax like this if the compactness is your aim, you can still do it this way, @xfournet : ```ts app.get("/response", (_, res) => void res.json('ok')); ``` But the...
Yes, but some code formatters, like [Prettier, would make that statement multiline](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEBDADugdAczjACgB0QB6AJzgGd1oq4SAaAAgIH0XKqBKZgXgB8zYMy5YAVlWgEA5BADWM3gF9uAbhCMQEdDACWdZKFTlyEAO4AFEwirI0AG3OoAnna0AjcqjDz8AZVQAWzgAGT0oOGQAM1QHek9vXwD0HwicZBhyAFc4LXogvUycvJA4AA90OHI9ENg4gBVqqBM9ahi4hJAqdIc4AEVsiHgO+NLJcv9egaGRpFixrQBHWbhLM3Q7FFQqAFpIuAATI80QLNQ9B3SAYQggoNR7OIdTnqgcPoBBGCy9D2z4JZquFIqMugALGBBBwAdXBengNB8cH8tgRegAbgiXPYwFR3CAMbkAJJQY6wfxgGq6T5k-wwFx9MGldBmegw7zoeys6jVDFRLQRejkGDrVA4B7MrSpcjC+wMqpUKl6XSnVkRGAwvSHGDg5AARgATAAGLSUFZ6ShiiWPeadUowVAeLU6vVIQ1abL0BpOrYLLpwIIeI7HQ6hVDvbLiuAAMQg5AeP3STwBEBAymUQA), so it might not be so desirably compact. So, I kinda understand the concern, but its essence does...
> @RobinTail, have we considered people who may be returning a Response from their handlers early that now need to refactor? We did. That's why it's the new major version...
> Context > Example 1 > Example 2 That's great, but both issues can be fixed by just removing the word `return` from both `.handle()` methods, @Mauro-Domingues There is no...
I think we're facing a conceptual problem here: should DT describe the types strictly to ensure constraints that help to avoid mistakes, OR should those types be loose enough to...
Those experiencing this problem need to ensure: - not using `*` as a version of `@types/express` in your `package.json`, because it means "any" and can be resolved to latest, which...
> Not sure why but the v5 types are pushed to v4.17.21 they are not. v5 published as v5.0.0
> does anyone know what is happening `authController.loginUser` must return `void | Promise` (not `Response`) to be compatible with `@types/[email protected]`, @eltatata in your `AuthController` file line 20 should be either:...
@JimmyBjorklund , I think this conversation is drifting from the idea of the original topic that seems to be resolved, isn't it?