diff --git a/dist/src/index.d.ts b/dist/src/index.d.ts index 4c9d155..6c6cecb 100644 --- a/dist/src/index.d.ts +++ b/dist/src/index.d.ts @@ -15,7 +15,11 @@ import { jsPDF } from "jspdf"; * logo: { * src: string, * width: number, - * height: number + * height: number, + * margin?: { + * top?: number, + * left?: number + * } * }, * business: { * name: string, @@ -37,16 +41,32 @@ import { jsPDF } from "jspdf"; * label: string, * invTotalLabel: string, * num: number, - * invDate: string, + * invDate: string, * invGenDate: string, * headerBorder: boolean, * tableBodyBorder: boolean, - * header: [], - * table: [], + * header: string[], + * table: any, * invTotal: string, * invCurrency: string, * invDescLabel: string, * invDesc: string, + * row1?: { + * col1?: string, + * col2?: string, + * col3?: string, + * style?: { + * fontSize?: number + * } + * }, + * row2?: { + * col1?: string, + * col2?: string, + * col3?: string, + * style?: { + * fontSize?: number + * } + * }, * }, * footer?: { * text: string, @@ -67,6 +87,10 @@ declare function jsPDFInvoiceTemplate(props: { src: string; width: number; height: number; + margin: { + top: number; + left: number; + }; }; business: { name: string; @@ -92,12 +116,28 @@ declare function jsPDFInvoiceTemplate(props: { invGenDate: string; headerBorder: boolean; tableBodyBorder: boolean; - header: []; - table: []; + header: string[]; + table: any; invTotal: string; invCurrency: string; invDescLabel: string; invDesc: string; + row1?: { + col1?: string; + col2?: string; + col3?: string; + style?: { + fontSize?: number; + }; + }; + row2?: { + col1?: string; + col2?: string; + col3?: string; + style?: { + fontSize?: number; + }; + }; }; footer?: { text: string; diff --git a/package.json b/package.json index c0af5d1..34bec7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jspdf-invoice-template", - "version": "1.1.0", + "version": "1.1.1", "description": "PDF template created for invoice with optional parameters. Using jsPDF library.", "main": "index.js", "scripts": { diff --git a/src/index.d.ts b/src/index.d.ts index afe38cb..6c6cecb 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -16,9 +16,9 @@ import { jsPDF } from "jspdf"; * src: string, * width: number, * height: number, - * margin: { - * top: number, - * left: number + * margin?: { + * top?: number, + * left?: number * } * }, * business: {