Skip to content

Commit

Permalink
Removes esModuleInterop from tsd and adds star import for helmet (#95)
Browse files Browse the repository at this point in the history
* Removes esModuleInterop from tsd and adds star import for helmet

* Uses FastifyPluginCallback exported from fastify top level exports
  • Loading branch information
fox1t authored Sep 14, 2020
1 parent b2322ba commit 94ab6e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FastifyPlugin } from "fastify";
import helmet from "helmet";
import { FastifyPluginCallback } from "fastify";
import * as helmet from "helmet";

type FastifyHelmetOptions = Parameters<typeof helmet>[0];

export const fastifyHelmet: FastifyPlugin<NonNullable<FastifyHelmetOptions>>;
export const fastifyHelmet: FastifyPluginCallback<NonNullable<FastifyHelmetOptions>>;

export default fastifyHelmet;
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,5 @@
"dependencies": {
"fastify-plugin": "^2.1.1",
"helmet": "^4.0.0"
},
"tsd": {
"compilerOptions": {
"esModuleInterop": true
}
}
}

0 comments on commit 94ab6e0

Please sign in to comment.