Skip to content

Commit

Permalink
Update server route handler type
Browse files Browse the repository at this point in the history
  • Loading branch information
hhanesand authored Oct 15, 2023
1 parent 23d6550 commit 2583710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ export interface ServerRoute<Refs extends ReqRef = ReqRefDefaults> {
/**
* (required when handler is not set) the route handler function called to generate the response after successful authentication and validation.
*/
handler?: Lifecycle.Method<Refs> | HandlerDecorations | undefined;
handler?: (Lifecycle.Method<Refs> & HandlerDecorations) | undefined;

/**
* additional route options. The options value can be an object or a function that returns an object using the signature function(server) where server is the server the route is being added to
Expand Down

0 comments on commit 2583710

Please sign in to comment.