Add type object to compression property. It is not only boolean.

This commit is contained in:
rafaelsouzaf
2017-12-10 18:49:38 -03:00
parent 9f0b8755af
commit cb280b5ccf

View File

@@ -55,7 +55,7 @@ export interface ServerOptions {
* Default value: { minBytes: 1024 }.
* Defines server handling of content encoding requests. If false, response content encoding is disabled and no compression is performed by the server.
*/
compression?: boolean;
compression?: boolean | object;
/**
* Default value: '1024'.