Skip to content

Commit 7fe2ce9

Browse files
authored
fix(TypeScript): Allow boundary to be null (#139)
1 parent c6220d5 commit 7fe2ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ interface Options {
4141

4242
// Custom behavior, not in any spec
4343
type CustomScrollBoundaryCallback = (parent: Element) => boolean
44-
type CustomScrollBoundary = Element | CustomScrollBoundaryCallback
44+
type CustomScrollBoundary = Element | CustomScrollBoundaryCallback | null
4545
interface CustomScrollAction {
4646
el: Element
4747
top: number

0 commit comments

Comments
 (0)