diff --git a/src/index.ts b/src/index.ts index 1e20c23..a7cb9a5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -74,7 +74,7 @@ const createLinkElement = (props: RehypeScrollToLink & { destinationId: string } }; }; -const rehypeScrollToTop: Plugin<[Partial], Root> = (options = {}) => { +const rehypeScrollToTop: Plugin<[Partial?], Root> = (options = {}) => { const opts = mergeOptions(options); return (tree) => {