Skip to content

Commit

Permalink
Add explicit return type to make declaration file smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jun 11, 2024
1 parent 8c30eac commit 6572746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-pdf/src/shared/structTreeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6572746

Please sign in to comment.