Skip to content

Commit 88b02cb

Browse files
🤖 Merge PR DefinitelyTyped#74545 fix: typo in footer property by @kshitijanurag
1 parent 318169a commit 88b02cb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

types/html-to-docx/html-to-docx-tests.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ HtmlToDocx(
4242
"footer",
4343
);
4444

45+
// $ExpectType Promise<Blob> | Promise<ArrayBuffer>
46+
HtmlToDocx(
47+
htmlString,
48+
null,
49+
{
50+
margins: {
51+
top: 720,
52+
right: 900,
53+
bottom: 720,
54+
left: 900,
55+
header: 360,
56+
footer: 360,
57+
gutter: 0,
58+
},
59+
},
60+
);
61+
4562
// @ts-expect-error
4663
HtmlToDocx(htmlString, {
4764
orientation: "landscape",

types/html-to-docx/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare namespace HtmlToDocx {
77
bottom?: number;
88
left?: number;
99
header?: number;
10-
fotter?: number;
10+
footer?: number;
1111
gutter?: number;
1212
}
1313

0 commit comments

Comments
 (0)