Skip to content

Commit

Permalink
SmoothBehaviorOptions is updated to be a type alias instead of an int…
Browse files Browse the repository at this point in the history
…erface since Options cannot be extended from because it's an interface too. (#1052)
  • Loading branch information
mortargrind committed Sep 14, 2023
1 parent 3770e9c commit 5d2d6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type OnScrollChangeCallback = (scrollState: {
top: number
}) => void

export interface SmoothBehaviorOptions extends Options {
export type SmoothBehaviorOptions = Options & {
behavior?: 'smooth'
duration?: number
ease?: CustomEasing
Expand Down

0 comments on commit 5d2d6ac

Please sign in to comment.