diff --git a/index.d.ts b/index.d.ts index b3c3b950..417ddbe1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -19,6 +19,7 @@ declare const fastifyStatic: fastify.Plugin void; redirect?: boolean; + wildcard?: boolean; // Passed on to `send` acceptRanges?: boolean; diff --git a/test/types/index.ts b/test/types/index.ts index 0ce9d736..fd217a7a 100644 --- a/test/types/index.ts +++ b/test/types/index.ts @@ -18,6 +18,7 @@ app.register(fastifyStatic, { root: '', schemaHide: true, serve: true, + wildcard: true, setHeaders: (res: any, pathName: any) => { res.setHeader('test', pathName) }