Skip to content

Commit 633a0e1

Browse files
authored
Update index.d.ts (#38)
make hook options non-mandatory, makes it nicer in TS based projects.
1 parent 4e7cd23 commit 633a0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export type StrengthFuncton = StrengthFunction;
1919

2020
export function useDndScrolling(
2121
ref: React.Ref<any>,
22-
options: {
22+
options?: {
2323
verticalStrength?: StrengthFunction;
2424
horizontalStrength?: StrengthFunction;
2525
strengthMultiplier?: number;

0 commit comments

Comments
 (0)