Skip to content

Commit

Permalink
fix: πŸ› route payload options missing types
Browse files Browse the repository at this point in the history
🎟️ References #4505 #4501
  • Loading branch information
damusix committed Jun 9, 2024
1 parent 6068875 commit 0b7b1bd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/types/route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ export interface RouteOptionsPayload {
*/
maxBytes?: number | undefined;

/**
* @default 1000
* Limits the size of incoming payloads to the specified byte count. Allowing very large payloads may cause the server to run out of memory.
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionspayloadmaxparts)
*/
maxParts?: number;

/**
* @default none.
* Overrides payload processing for multipart requests. Value can be one of:
Expand All @@ -267,12 +274,7 @@ export interface RouteOptionsPayload {
* * * * payload - the processed part payload.
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionspayloadmultipart)
*/
multipart?:
| false
| {
output: PayloadOutput | 'annotated';
}
| undefined;
multipart?: boolean | { output: PayloadOutput | 'annotated' };

/**
* @default 'data'.
Expand Down

0 comments on commit 0b7b1bd

Please sign in to comment.