Skip to content

Commit 28db577

Browse files
authored
🤖 Merge PR DefinitelyTyped#73985 feat(pdfkit): added pdfkit standalone file by @Alexnortung
1 parent a2c2eaa commit 28db577

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎types/pdfkit/index.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,11 @@ declare module "pdfkit" {
935935
export = doc;
936936
}
937937

938+
declare module "pdfkit/js/pdfkit.standalone" {
939+
var doc: PDFKit.PDFDocument;
940+
export = doc;
941+
}
942+
938943
declare module "pdfkit/js/gradient" {
939944
var gradient: {
940945
PDFGradient: PDFKit.PDFGradient;

‎types/pdfkit/pdfkit-tests.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ var PDFTilingPattern = PDFPattern.PDFTilingPattern;
99
import mtext = require("pdfkit/js/mixins/text");
1010

1111
import PDFDocument = require("pdfkit");
12+
import PDFDocumentStandalone = require("pdfkit/js/pdfkit.standalone");
1213

1314
import font = require("pdfkit/js/mixins/fonts");
1415
import pdfData = require("pdfkit/js/data");
@@ -728,3 +729,5 @@ doc.boundsOfString("Bounds of string", 50, 100, {
728729
doc.boundsOfString("Bounds of string", {
729730
align: "left",
730731
});
732+
733+
var docStandalone: PDFKit.PDFDocument = new PDFDocumentStandalone();

0 commit comments

Comments
 (0)