Skip to content

Commit

Permalink
Merge pull request #60 from renbaoshuo/fix-typing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafalasco authored Feb 16, 2022
2 parents b865ada + 48cec6e commit f1fbec2
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 @@ -58,7 +58,7 @@ interface Coordinates {
export default function createScrollSnap(
element: HTMLElement,
settings: Settings = {},
callback: () => void
callback?: () => void
) {
const onAnimationEnd = typeof callback === 'function' ? callback : NOOP

Expand Down

0 comments on commit f1fbec2

Please sign in to comment.