Skip to content

Commit

Permalink
Merge pull request #5 from AthennaIO/develop
Browse files Browse the repository at this point in the history
feat: set ctx as required in handlers
  • Loading branch information
jlenon7 committed Mar 28, 2022
2 parents 53a37c2 + 607c84f commit f5c1f01
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athenna/http",
"version": "1.0.2",
"version": "1.0.3",
"description": "The Athenna Http server. Built on top of fastify",
"license": "MIT",
"author": "João Lenon <lenon@athenna.io>",
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/Context/HandlerContract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
import { ContextContract } from './ContextContract'

export interface HandlerContract {
(ctx?: ContextContract): Promise<any> | any
(ctx: ContextContract): Promise<any> | any
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
import { HandleContextContract } from './HandleContextContract'

export interface HandleHandlerContract {
(ctx?: HandleContextContract): Promise<any> | any
(ctx: HandleContextContract): Promise<any> | any
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
import { InterceptContextContract } from './InterceptContextContract'

export interface InterceptHandlerContract {
(ctx?: InterceptContextContract): Promise<any> | any
(ctx: InterceptContextContract): Promise<any> | any
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
import { TerminateContextContract } from './TerminateContextContract'

export interface TerminateHandlerContract {
(ctx?: TerminateContextContract): Promise<any> | any
(ctx: TerminateContextContract): Promise<any> | any
}

0 comments on commit f5c1f01

Please sign in to comment.