Skip to content

Commit

Permalink
test(plugin): fix broken type tests (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 6, 2025
1 parent e4c5dcc commit 73ade3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/plugin.test-d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ const callbackPlugin: FastifyPluginCallbackTypebox<{ optionA: string }, Http2Ser

const fastify = Fastify()

fastify.register(asyncPlugin)
fastify.register(callbackPlugin)
fastify.register(asyncPlugin, {optionA: 'a'})
fastify.register(callbackPlugin, {optionA: 'a'})

const asyncPluginHttpDefault: FastifyPluginAsyncTypebox<{ optionA: string }> = async (fastify, options) => {
const asyncPluginHttpDefault: FastifyPluginAsyncTypebox<{ optionA: string }> = async () => {
}

fp(asyncPlugin)
Expand Down

0 comments on commit 73ade3a

Please sign in to comment.