Skip to content

Commit 8ddbdf3

Browse files
committed
fix: add type test.
1 parent 219153a commit 8ddbdf3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/index.test-d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ app.register(fastifyHttpProxy, {
3434
expectType<RawRequestDefaultExpression>(request.raw)
3535
expectType<RawReplyDefaultExpression>(reply.raw)
3636
},
37+
preRewrite: (url, params, prefix): string => {
38+
expectType<string>(url)
39+
expectType<unknown>(params)
40+
expectType<string>(prefix)
41+
return ''
42+
},
3743
base: 'whatever',
3844
cacheURLs: 10,
3945
undici: {

0 commit comments

Comments
 (0)