Skip to content

Commit

Permalink
fix: reply.render ts tip
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivean committed Oct 29, 2022
1 parent 1e13f89 commit 685a719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/view/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface HothViewOptions {

declare module 'fastify' {
interface FastifyReply {
render(page: string, data?: Record<string, unknown>, cb?: (err: Error, html: string) => void): FastifyReply;
render(page: string, data?: Record<string, unknown>, cb?: (err: Error, html: string) => void): Promise<string>;
// locals?: object;
}
}
Expand Down

0 comments on commit 685a719

Please sign in to comment.