diff --git a/packages/react-pdf/src/shared/structTreeUtils.ts b/packages/react-pdf/src/shared/structTreeUtils.ts index 7dae122ba..6954f1802 100644 --- a/packages/react-pdf/src/shared/structTreeUtils.ts +++ b/packages/react-pdf/src/shared/structTreeUtils.ts @@ -83,7 +83,9 @@ export function getBaseAttributes( return attributes; } -export function getAttributes(node: StructTreeNodeWithExtraAttributes | StructTreeContent) { +export function getAttributes( + node: StructTreeNodeWithExtraAttributes | StructTreeContent, +): Attributes | null { if (!node) { return null; }