Skip to content

Commit fa6012b

Browse files
hfjallemarkcemremengu
authored andcommitted
Adds wildcard option to type definition (#99)
* Adds wildcard option to type definition * Added wildcard to type tests
1 parent ddea1b4 commit fa6012b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ declare const fastifyStatic: fastify.Plugin<Server, IncomingMessage, ServerRespo
1919
schemaHide?: boolean;
2020
setHeaders?: (...args: any[]) => void;
2121
redirect?: boolean;
22+
wildcard?: boolean;
2223

2324
// Passed on to `send`
2425
acceptRanges?: boolean;

test/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ app.register(fastifyStatic, {
1818
root: '',
1919
schemaHide: true,
2020
serve: true,
21+
wildcard: true,
2122
setHeaders: (res: any, pathName: any) => {
2223
res.setHeader('test', pathName)
2324
}

0 commit comments

Comments
 (0)