Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefED committed Oct 22, 2024
1 parent c19841b commit eacd13a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/pdf/src/docx/defaultSchema/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function blockPropsToStyles(props: Partial<DefaultProps>): IParagraphOptions {
};
}
export const docxBlockMappingForDefaultSchema = {
paragraph: (block, inlineContentTransformer, nestingLevel) => {
paragraph: (block, inlineContentTransformer) => {
return new Paragraph({
...blockPropsToStyles(block.props),
children: inlineContentTransformer(block.content),
Expand Down Expand Up @@ -82,7 +82,7 @@ export const docxBlockMappingForDefaultSchema = {
},
});
},
checkListItem: (block, inlineContentTransformer, nestingLevel) => {
checkListItem: (block, inlineContentTransformer) => {
return new Paragraph({
children: [
new CheckBox({ checked: block.props.checked }),
Expand All @@ -93,7 +93,7 @@ export const docxBlockMappingForDefaultSchema = {
],
});
},
heading: (block, inlineContentTransformer, nestingLevel) => {
heading: (block, inlineContentTransformer) => {
return new Paragraph({
...blockPropsToStyles(block.props),
children: inlineContentTransformer(block.content),
Expand Down
2 changes: 1 addition & 1 deletion packages/pdf/src/docx/docxExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class DOCXExporter<
const promises = await Promise.all(
blocks.flatMap(async (b) => {
let children = await this.transformBlocks(b.children, nestingLevel + 1);
children = children.map((c, i) => {
children = children.map((c, _i) => {
// TODO: nested tables not supported
if (
c instanceof Paragraph &&
Expand Down

0 comments on commit eacd13a

Please sign in to comment.