From 685a7195cf2fd5171f6026d7d7bbf224b8d8f23d Mon Sep 17 00:00:00 2001 From: kaivean Date: Sun, 30 Oct 2022 01:03:54 +0800 Subject: [PATCH] fix: reply.render ts tip --- packages/view/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/view/src/index.ts b/packages/view/src/index.ts index ac7fc84..92e82b8 100644 --- a/packages/view/src/index.ts +++ b/packages/view/src/index.ts @@ -42,7 +42,7 @@ export interface HothViewOptions { declare module 'fastify' { interface FastifyReply { - render(page: string, data?: Record, cb?: (err: Error, html: string) => void): FastifyReply; + render(page: string, data?: Record, cb?: (err: Error, html: string) => void): Promise; // locals?: object; } }