Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Apr 13, 2024
1 parent f6d8073 commit 81daf08
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/fastify-api-reference/src/fastifyApiReference.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import type { ReferenceConfiguration } from '@scalar/api-reference'
import type {
FastifyBaseLogger,
FastifyPluginAsync,
FastifyTypeProviderDefault,
RawServerDefault,
} from 'fastify'
import fp from 'fastify-plugin'

import { getJavaScriptFile } from './utils'
Expand Down Expand Up @@ -162,7 +168,13 @@ export function htmlDocument(options: FastifyApiReferenceOptions) {
`
}

const fastifyApiReference = fp<FastifyApiReferenceOptions>(
const fastifyApiReference = fp<
FastifyApiReferenceOptions,
RawServerDefault,
FastifyTypeProviderDefault,
FastifyBaseLogger,
FastifyPluginAsync
>(
async (fastify, options) => {
let { configuration } = options
const hasSwaggerPlugin = fastify.hasPlugin('@fastify/swagger')
Expand Down

0 comments on commit 81daf08

Please sign in to comment.