Skip to content

Commit

Permalink
Add type support for error in next callback (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaenchen authored and mcollina committed Dec 3, 2018
1 parent e0bbba6 commit 44780ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fastify-plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare function fastifyPlugin<HttpServer, HttpRequest, HttpResponse, T>(
): fastify.Plugin<HttpServer, HttpRequest, HttpResponse, T>;

declare namespace fastifyPlugin {
type nextCallback = () => void;
type nextCallback = (err?: Error) => void;
interface PluginOptions {
/** Bare-minimum version of Fastify for your plugin, just add the semver range that you need. */
fastify?: string,
Expand All @@ -34,4 +34,4 @@ declare namespace fastifyPlugin {
}
}

export = fastifyPlugin;
export = fastifyPlugin;

0 comments on commit 44780ce

Please sign in to comment.