-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes esModuleInterop from tsd and adds star import for helmet (#95)
* Removes esModuleInterop from tsd and adds star import for helmet * Uses FastifyPluginCallback exported from fastify top level exports
- Loading branch information
Showing
2 changed files
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters