Skip to content

Commit 5d2d6ac

Browse files
authored
SmoothBehaviorOptions is updated to be a type alias instead of an interface since Options cannot be extended from because it's an interface too. (#1052)
1 parent 3770e9c commit 5d2d6ac

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
@@ -16,7 +16,7 @@ type OnScrollChangeCallback = (scrollState: {
1616
top: number
1717
}) => void
1818

19-
export interface SmoothBehaviorOptions extends Options {
19+
export type SmoothBehaviorOptions = Options & {
2020
behavior?: 'smooth'
2121
duration?: number
2222
ease?: CustomEasing

0 commit comments

Comments
 (0)