Skip to content

Commit

Permalink
fix(types): add HttpContext bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Sep 20, 2023
1 parent 458b1b1 commit 062167e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/types/extended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ declare module '@adonisjs/core/types' {
'session:migrated': { fromSessionId: string; toSessionId: string; session: Session }
}
}

declare module '@adonisjs/core/http' {
interface HttpContext {
session: Session
}
}

0 comments on commit 062167e

Please sign in to comment.