Skip to content

Commit

Permalink
fix: exported module types
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeee authored and dnlup committed Dec 21, 2023
1 parent 30942a2 commit 6daab84
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
FastifyPluginCallback,
FastifyPluginAsync,
} from 'fastify'
} from 'fastify-plugin'

export interface TrapsPluginOptions {
timeout?: number,
Expand All @@ -12,7 +11,5 @@ export interface TrapsPluginOptions {
strict?: boolean
}

export const trapsPluginCallback: FastifyPluginCallback<TrapsPluginOptions>;
export const trapsPluginAsync: FastifyPluginAsync<TrapsPluginOptions>;

export default trapsPluginCallback;
const plugin: FastifyPluginCallback<TrapsPluginOptions>;
export = plugin;

0 comments on commit 6daab84

Please sign in to comment.