From ee44afff2211c8431ba6777a80f8df6e7b0b2a63 Mon Sep 17 00:00:00 2001 From: Benjamin Charity Date: Fri, 2 Feb 2024 23:34:26 -0500 Subject: [PATCH] fix: options no longer required --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {