Skip to content

Commit

Permalink
Fix type of build in helper (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanAbate authored Feb 8, 2024
1 parent b677462 commit 8915111
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions helper.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import fastify from 'fastify'

declare module 'fastify-cli/helper.js' {
type fastifyFunctionReturnType = ReturnType<fastify>;

module helper {
export function build(argv: Array<string>, config: Object): fastifyFunctionReturnType;
export function build(argv: Array<string>, config: Object): ReturnType<typeof fastify>;
}

export = helper;
}
}

0 comments on commit 8915111

Please sign in to comment.