We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e50e53 commit adc88d3Copy full SHA for adc88d3
test/types/fastify.test-d.ts
@@ -57,7 +57,7 @@ expectAssignable<InjectOptions>({ query: '' })
57
fastify({ http2: true, https: {} }).inject().then((resp) => {
58
expectAssignable<LightMyRequestResponse>(resp)
59
})
60
-const lightMyRequestCallback: LightMyRequestCallback = (err: Error, response: LightMyRequestResponse) => {
+const lightMyRequestCallback: LightMyRequestCallback = (err: Error | undefined, response: LightMyRequestResponse | undefined) => {
61
if (err) throw err
62
}
63
fastify({ http2: true, https: {} }).inject({}, lightMyRequestCallback)
0 commit comments