Skip to content

fix(types): Add autoScroll to thumbs.update type signature#8146

Merged
nolimits4web merged 2 commits intonolimits4web:masterfrom
nWacky:fix-update-type-pr
Jan 28, 2026
Merged

fix(types): Add autoScroll to thumbs.update type signature#8146
nolimits4web merged 2 commits intonolimits4web:masterfrom
nWacky:fix-update-type-pr

Conversation

@nWacky
Copy link
Contributor

@nWacky nWacky commented Jan 15, 2026

After #8141 update() supports 2 parameters:

function update(initial, p = { autoScroll: true }) {

update() is exposed publicly in swiper.thumbs.update.

In this PR:

Add p: { autoScroll: boolean } to update()'s type signature.

When calling update(false, { otherOption: true }), default autoScroll to true

to support adding more parameters in the future.

`autoScroll` will be `true` by default when `p` is `undefined` or `{}`
@nolimits4web nolimits4web merged commit 5d91e6e into nolimits4web:master Jan 28, 2026
3 checks passed
@nolimits4web
Copy link
Owner

nolimits4web commented Jan 28, 2026

Merged, thanks!

@nWacky nWacky deleted the fix-update-type-pr branch February 2, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants