Skip to content

Commit

Permalink
fix type (#5330)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Feb 25, 2024
1 parent 7e50e53 commit adc88d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/types/fastify.test-d.ts
Expand Up @@ -57,7 +57,7 @@ expectAssignable<InjectOptions>({ query: '' })
fastify({ http2: true, https: {} }).inject().then((resp) => {
expectAssignable<LightMyRequestResponse>(resp)
})
const lightMyRequestCallback: LightMyRequestCallback = (err: Error, response: LightMyRequestResponse) => {
const lightMyRequestCallback: LightMyRequestCallback = (err: Error | undefined, response: LightMyRequestResponse | undefined) => {
if (err) throw err
}
fastify({ http2: true, https: {} }).inject({}, lightMyRequestCallback)
Expand Down

0 comments on commit adc88d3

Please sign in to comment.