We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node.js
18+
21.3.3
No response
Set maxParts in multipart payload
maxParts
payload: { // 2MB maxBytes: 2097152, maxParts: 2, multipart: { output: "stream" }, parse: true }
When we do that we get:
typescript: Object literal may only specify known properties, and 'maxParts' does not exist in type 'RouteOptionsPayload'. [2353]
We expect it to work:
This is actually a super easy fix:
hapi/lib/types/route.d.ts
Line 256 in 6068875
We just need to add
maxParts?: number | undefined;
In that line 😄
The text was updated successfully, but these errors were encountered:
fix: 🐛 route payload options missing types
0b7b1bd
🎟️ References hapijs#4505 hapijs#4501
c8d7e2a
8a249d3
68f2774
🎟️ References #4505 #4501
damusix
Successfully merging a pull request may close this issue.
Runtime
node.js
Runtime version
18+
Module version
21.3.3
Last module version without issue
No response
Used with
No response
Any other relevant information
No response
What are you trying to achieve or the steps to reproduce?
Set
maxParts
in multipart payloadWhat was the result you got?
When we do that we get:
typescript: Object literal may only specify known properties, and 'maxParts' does not exist in type 'RouteOptionsPayload'. [2353]
What result did you expect?
We expect it to work:
This is actually a super easy fix:
hapi/lib/types/route.d.ts
Line 256 in 6068875
We just need to add
maxParts?: number | undefined;
In that line 😄
The text was updated successfully, but these errors were encountered: