Skip to content

Commit adc88d3

Browse files
authored
fix type (fastify#5330)
1 parent 7e50e53 commit adc88d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/types/fastify.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ expectAssignable<InjectOptions>({ query: '' })
5757
fastify({ http2: true, https: {} }).inject().then((resp) => {
5858
expectAssignable<LightMyRequestResponse>(resp)
5959
})
60-
const lightMyRequestCallback: LightMyRequestCallback = (err: Error, response: LightMyRequestResponse) => {
60+
const lightMyRequestCallback: LightMyRequestCallback = (err: Error | undefined, response: LightMyRequestResponse | undefined) => {
6161
if (err) throw err
6262
}
6363
fastify({ http2: true, https: {} }).inject({}, lightMyRequestCallback)

0 commit comments

Comments
 (0)