1.4.0 invoice header is expecting string[] but demo site given as object[]
ranraj opened this issue · comments
Ranjithrajd commented
The types of 'invoice.header' are incompatible between these types.
Type '({ title: string; style: { width: number; }; } | { title: string; style?: undefined; })[]' is not assignable to type 'string[]'.
This source header definition is expecting string[]
Source code (zip)
Snippet from above source
invDate?: string,
* invGenDate?: string,
* headerBorder?: boolean,
* tableBodyBorder?: boolean,
* header?: string[],
* table?: any,
* invTotalLabel?: string,
* invTotal?: string,
I get the exception for this
header: [
{
title: "#",
style: {
width: 10
}
},
{
title: "Title",
style: {
width: 30
}
},
{
Edison Neza commented
Will change it ASAP.
Thanks!
Edison Neza commented
It's been fixed in 1.4.2