Skip to content

Commit 80e79be

Browse files
authored
Merge pull request #90 from fastify/fix-v3
Fix types for v3
2 parents d51466d + c3778c2 commit 80e79be

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
FastifyPlugin,
77
RawReplyDefaultExpression,
88
RawServerBase,
9+
RequestGenericInterface
910
} from 'fastify';
1011

1112
import {
@@ -34,7 +35,7 @@ declare module "fastify" {
3435
queryString?: { [key: string]: unknown };
3536
contentType?: string;
3637
onResponse?: (
37-
request: FastifyRequest<RawServerBase>,
38+
request: FastifyRequest<RequestGenericInterface, RawServerBase>,
3839
reply: FastifyReply<RawServerBase>,
3940
res: RawReplyDefaultExpression<RawServerBase>
4041
) => void;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"homepage": "https://github.com/fastify/fastify-reply-from#readme",
3131
"devDependencies": {
3232
"@types/node": "^14.0.4",
33-
"fastify": "^3.0.0-rc.5",
33+
"fastify": "^3.0.0",
3434
"got": "^11.1.3",
3535
"h2url": "^0.2.0",
3636
"msgpack5": "^4.2.1",

0 commit comments

Comments
 (0)