diff --git a/docs/api-routes/response-helpers.md b/docs/api-routes/response-helpers.md index 58477cf274cf..f2b8c93a8d1d 100644 --- a/docs/api-routes/response-helpers.md +++ b/docs/api-routes/response-helpers.md @@ -98,6 +98,8 @@ export default function handler( } ``` +> Note: The body of `NextApiRequest` is `any` because the client may include any payload. You should validate the type/shape of the body at runtime before using it. + To view more examples using types, check out the [TypeScript documentation](/docs/basic-features/typescript.md#api-routes). If you prefer to view your examples within a real projects structure you can checkout our examples repository: