Skip to content

Commit

Permalink
fix type for setPosition (closes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Nov 26, 2024
1 parent 309dfbb commit f9ba992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export interface BiggerPictureInstance {
/** Changes to previous item in gallery. */
prev: () => void
/** Changes to `position` item in gallery (zero-indexed). */
setPosition: (options: { position: number }) => void
setPosition: (position: number) => void
/** Array of all items in currently active gallery */
items: item[]
/** Gallery target */
Expand Down

0 comments on commit f9ba992

Please sign in to comment.