File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/fastify-renderer/src/node Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
import { IncomingMessage , Server , ServerResponse } from 'http'
14
14
import { ReactElement } from 'react'
15
15
import { ViteDevServer } from 'vite'
16
+ import { RegisteredRenderable } from './Plugin'
16
17
17
18
export type ServerRenderer < Props > = (
18
19
this : FastifyInstance < Server , IncomingMessage , ServerResponse > ,
@@ -48,7 +49,7 @@ export interface ServerEntrypointManifest {
48
49
declare module 'fastify' {
49
50
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
50
51
interface FastifyInstance {
51
- registerRenderable : ( renderable : string ) => void
52
+ registerRenderable : ( renderable : string ) => RegisteredRenderable
52
53
}
53
54
54
55
interface RouteShorthandOptions < RawServer extends RawServerBase = RawServerDefault > {
@@ -59,7 +60,7 @@ declare module 'fastify' {
59
60
vite : ViteDevServer
60
61
}
61
62
interface FastifyReply {
62
- render : < Props > ( this : FastifyReply , renderable : string , props : Props ) => Promise < void >
63
+ render : < Props > ( this : FastifyReply , renderable : RegisteredRenderable , props : Props ) => Promise < void >
63
64
}
64
65
65
66
interface RouteShorthandMethod <
You can’t perform that action at this time.
0 commit comments