Skip to content

Commit 16370b8

Browse files
Harminder VirkHarminder Virk
authored andcommitted
fix: merge bodyparser augmented types
1 parent f3e5d17 commit 16370b8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/http/main.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
* file that was distributed with this source code.
88
*/
99

10-
/// <reference types="@adonisjs/bodyparser/bodyparser_middleware" />
11-
10+
/**
11+
* Bodyparser import is needed to merge types of Request
12+
* class augmented by the bodyparser package
13+
*/
14+
import '@adonisjs/bodyparser'
1215
export * from '@adonisjs/http-server'
1316
export { RequestValidator } from './request_validator.js'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"dependencies": {
117117
"@adonisjs/ace": "^12.3.2-0",
118118
"@adonisjs/application": "^8.0.0-0",
119-
"@adonisjs/bodyparser": "^10.0.0-0",
119+
"@adonisjs/bodyparser": "^10.0.0-1",
120120
"@adonisjs/config": "^4.2.1-5",
121121
"@adonisjs/encryption": "^5.1.2-3",
122122
"@adonisjs/env": "^4.2.0-6",

0 commit comments

Comments
 (0)