Skip to content

Commit

Permalink
fix: feedback 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm committed Oct 8, 2022
1 parent 8a4f342 commit 0e9ee7e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface FastifyOverviewOptions {
/**
* Customize the route's options when `exposeRoute` is set to `true`
*/
exposeRouteOptions?: RouteOptions,
exposeRouteOptions?: Partial<RouteOptions>,
}

export interface FastifyOverviewDecoratorOptions {
Expand Down
4 changes: 2 additions & 2 deletions test/types/index.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expectType } from 'tsd'

import fastify, { RouteOptions } from 'fastify'
import fastify from 'fastify'
import fastifyOverview, { OverviewStructure } from '../../index'

const app = fastify()
Expand All @@ -11,7 +11,7 @@ app
exposeRoute: true,
exposeRouteOptions: {
url: '/custom'
} as RouteOptions
}
})
.after((_) => {
const data = app.overview()
Expand Down

0 comments on commit 0e9ee7e

Please sign in to comment.