From 4764a56e7843d73a2c3bcce9d3426981958b0098 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 23 Dec 2023 19:40:26 +0000 Subject: [PATCH] Fix types --- src/lib/ScrollContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ScrollContext.tsx b/src/lib/ScrollContext.tsx index 447db74e0e..3fa67eafd4 100644 --- a/src/lib/ScrollContext.tsx +++ b/src/lib/ScrollContext.tsx @@ -22,7 +22,7 @@ export function useScrollHandlers(): ScrollHandlers { return useContext(ScrollContext) } -type ProviderProps = {children: React.ReactNode} & ScrollHandlers +type ProviderProps = {children: React.ReactNode} & Partial // Note: this completely *overrides* the parent handlers. // It's up to you to compose them with the parent ones via useScrollHandlers() if needed.