Skip to content

Commit

Permalink
npm publish v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonneza committed Mar 24, 2021
1 parent e46bcb9 commit f00e848
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 10 deletions.
52 changes: 46 additions & 6 deletions dist/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -67,6 +87,10 @@ declare function jsPDFInvoiceTemplate(props: {
src: string;
width: number;
height: number;
margin: {
top: number;
left: number;
};
};
business: {
name: string;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f00e848

Please sign in to comment.