1
- import { FastifyPlugin , FastifyReply , FastifyRequest , RawServerBase , RequestGenericInterface } from 'fastify' ;
1
+ import { FastifyPlugin , FastifyReply , FastifyRequest } from 'fastify' ;
2
2
import { Input , InputObject } from 'into-stream' ;
3
3
import { Stream } from 'stream' ;
4
4
import { BrotliOptions , ZlibOptions } from 'zlib' ;
@@ -19,12 +19,12 @@ export interface FastifyCompressOptions {
19
19
brotliOptions ?: BrotliOptions
20
20
zlibOptions ?: ZlibOptions
21
21
inflateIfDeflated ?: boolean
22
- onUnsupportedEncoding ?: ( encoding : string , request : FastifyRequest < RequestGenericInterface , RawServerBase > , reply : FastifyReply < RawServerBase > ) => string | Buffer | Stream
22
+ onUnsupportedEncoding ?: ( encoding : string , request : FastifyRequest , reply : FastifyReply ) => string | Buffer | Stream
23
23
encodings ?: Array < EncodingToken >
24
24
requestEncodings ?: Array < EncodingToken >
25
25
forceRequestEncoding ?: EncodingToken
26
- onUnsupportedRequestEncoding ?: ( encoding : string , request : FastifyRequest < RequestGenericInterface , RawServerBase > , reply : FastifyReply < RawServerBase > ) => Error | undefined | null
27
- onInvalidRequestPayload ?: ( encoding : string , request : FastifyRequest < RequestGenericInterface , RawServerBase > , error : Error ) => Error | undefined | null
26
+ onUnsupportedRequestEncoding ?: ( encoding : string , request : FastifyRequest , reply : FastifyReply ) => Error | undefined | null
27
+ onInvalidRequestPayload ?: ( encoding : string , request : FastifyRequest , error : Error ) => Error | undefined | null
28
28
}
29
29
30
30
declare const fastifyCompress : FastifyPlugin < FastifyCompressOptions >
0 commit comments