Skip to content

Commit

Permalink
fix: options no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincharity committed Feb 3, 2024
1 parent 947fe1c commit ee44aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const createLinkElement = (props: RehypeScrollToLink & { destinationId: string }
};
};

const rehypeScrollToTop: Plugin<[Partial<RehypeScrollToTopOptions>], Root> = (options = {}) => {
const rehypeScrollToTop: Plugin<[Partial<RehypeScrollToTopOptions>?], Root> = (options = {}) => {
const opts = mergeOptions(options);

return (tree) => {
Expand Down

0 comments on commit ee44aff

Please sign in to comment.