[@types/pdfmake] extended background definition for other content types (#35323)

* extended background definition for other content types

* make background type definition more readable

Co-Authored-By: Dan Rumney <dancrumb@gmail.com>
This commit is contained in:
Stuart Heap 2019-05-24 23:01:22 +02:00 committed by Ryan Cavanaugh
parent e11f807ce1
commit 11b03605ce

View File

@ -182,7 +182,7 @@ declare module "pdfmake/build/pdfmake" {
}
interface TDocumentDefinitions {
background?: () => string | string;
background?: string | ((currentPage: number, pageSize: PageSize) => string | Content | null);
compress?: boolean;
content: string | Content | Array<string | Content>;
defaultStyle?: Style;