diff --git a/types/index.d.ts b/types/index.d.ts index ef8bfb5a..5ac2d625 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -104,7 +104,7 @@ declare namespace fastifyMultipart { [fieldname: string]: Multipart | Multipart[] | undefined; } - export interface FastifyMultipartBaseOptions { + export interface FastifyMultipartBaseOptions extends Partial { /** * Add a shared schema to validate the input fields */ diff --git a/types/index.test-d.ts b/types/index.test-d.ts index 4237d966..f05e0cdc 100644 --- a/types/index.test-d.ts +++ b/types/index.test-d.ts @@ -14,6 +14,7 @@ const runServer = async () => { const app = fastify() app.register(fastifyMultipart, { + preservePath: true, // field inherited from `BusboyConfig` interface attachFieldsToBody: true, limits: { parts: 500