Skip to content

Commit

Permalink
fix: removed type specification from HttpContext import; import needs…
Browse files Browse the repository at this point in the history
… to persist for DI
  • Loading branch information
tomgobich committed Jul 14, 2024
1 parent 4cfabc0 commit fced238
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stubs/make/action/http.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
})
}}}
import { inject } from '@adonisjs/core'
import type { HttpContext } from '@adonisjs/core/http'
import { HttpContext } from '@adonisjs/core/http'

type Params = {}

Expand Down
2 changes: 1 addition & 1 deletion tests/commands/make_action.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test.group('MakeAction', (group) => {
)
await assert.fileContains(
'app/actions/update_user_from_form.ts',
`import type { HttpContext } from '@adonisjs/core/http'`
`import { HttpContext } from '@adonisjs/core/http'`
)
await assert.fileContains(
'app/actions/update_user_from_form.ts',
Expand Down

0 comments on commit fced238

Please sign in to comment.