diff --git a/types/pdfmake/index.d.ts b/types/pdfmake/index.d.ts index a812611400..8ec939a588 100644 --- a/types/pdfmake/index.d.ts +++ b/types/pdfmake/index.d.ts @@ -172,6 +172,7 @@ declare module 'pdfmake/build/pdfmake' { interface TDocumentDefinitions { info?: TDocumentInformation; + compress?: boolean; header?: TDocumentHeaderFooterFunction; footer?: TDocumentHeaderFooterFunction; content: string | Content; diff --git a/types/pdfmake/pdfmake-tests.ts b/types/pdfmake/pdfmake-tests.ts index 1913e3fe8a..2378fd5700 100644 --- a/types/pdfmake/pdfmake-tests.ts +++ b/types/pdfmake/pdfmake-tests.ts @@ -1316,6 +1316,10 @@ const definitions = [ images: { building: 'data:image/gif;base64,...' } + }, + { + compress: false, + content: ['This document does not use compression'] } ];