Skip to content

Commit abd356c

Browse files
committed
chore: download type
1 parent 27534e7 commit abd356c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/doom/src/theme/Link.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ export const Link = (props: LinkProps) => {
1313
return (
1414
<OriginalLink
1515
{...props}
16-
download={props.href?.endsWith('.pdf') && props.download !== false}
16+
download={
17+
// type-coverage:ignore-next-line -- out of control
18+
props.download == null
19+
? props.href?.endsWith('.pdf')
20+
: (props.download as unknown)
21+
}
1722
/>
1823
)
1924
}

0 commit comments

Comments
 (0)