Skip to content

Commit

Permalink
PAKCAGE release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreKelling committed Feb 14, 2024
1 parent 2312701 commit 3a8220e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 2 additions & 4 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ import { printPDF } from "jspdf-invoice";
document.querySelector(".js-print-pdf").addEventListener("click", function() {
/**
* @type {PrintData[]}
* @type {PrintData} check PrintData interface in src/print/index.d.ts
*/
const printData = {
...
...
}
printPDF(printData);
});
```

Has a little interface helper `PrintData` via JSDoc.
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jspdf-invoice",
"version": "0.3.0",
"version": "1.0.0",
"main": "src/app.js",
"author": "André Kelling",
"description": "Invoice A4 PDF printing.",
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-template",
"version": "5.0.0",
"version": "5.0.1",
"main": "src/app.js",
"author": "André Kelling",
"description": "Invoice template and setup for jsPDF usage in ES6.",
Expand Down
4 changes: 4 additions & 0 deletions src/print/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ import text from './partials/text';
import footer from './partials/footer';
import logo from './partials/logo';

/**
* @param {PrintData} printData
* @returns {void}
*/
export function printPDF(printData) {
addFontNormal();
addFontBold();
Expand Down

0 comments on commit 3a8220e

Please sign in to comment.