Skip to content

Commit

Permalink
[FIX] Build error due to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
louisescher committed Sep 10, 2024
1 parent c09bff1 commit 45f7f0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/user-components/rehype-file-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const fileTreeProcessor = rehype()
if (isDirectory) {
// Add a screen reader only label for directories before the icon so that it is announced
// as such before reading the directory name.
icon.children.unshift(h('span', { class: 'sr-only' }, directoryLabel));
icon.children.unshift(h('span', { class: 'sr-only' }, directoryLabel as any));
}

// Add classes and data attributes to the list item node.
Expand Down

0 comments on commit 45f7f0b

Please sign in to comment.