Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#68567 [pdfkit] add string type for image l…
Browse files Browse the repository at this point in the history
…inks by @bencevans
  • Loading branch information
bencevans authored Feb 9, 2024
1 parent 6f0d463 commit f2e9b02
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion types/pdfkit/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ declare namespace PDFKit.Mixins {
cover?: [number, number] | undefined;
align?: "center" | "right" | undefined;
valign?: "center" | "bottom" | undefined;
link?: AnnotationOption | undefined;
link?: string | AnnotationOption | undefined;
goTo?: AnnotationOption | undefined;
destination?: string | undefined;
}
Expand Down
5 changes: 5 additions & 0 deletions types/pdfkit/pdfkit-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ doc.image("path/to/image.png", {
valign: "center",
});

doc.image("path/to/image.png", {
fit: [250, 300],
link: "http://google.com/",
});

doc.image("path/to/image.png", {
cover: [250, 300],
});
Expand Down

0 comments on commit f2e9b02

Please sign in to comment.