Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the type of a swiper custom module in typescript? #6283

Closed
ardalan-nhd opened this issue Dec 25, 2022 · 0 comments
Closed

What is the type of a swiper custom module in typescript? #6283

ardalan-nhd opened this issue Dec 25, 2022 · 0 comments

Comments

@ardalan-nhd
Copy link

Hi. Having a problem with identifying the appropriate type for a swiper module. As far as I know, a swiper module is a function that receives a single argument which is an object. Let's say I have the following code

function customModule(argument: ModuleArg) { console.log( }

const swiper = new Swiper(".swiper", {
  modules: [customModule]
})

What is the type of ModuleArg? I searched through your code base and documentation but couldn't find what I needed. for example I used Swiper type exported from swiper/types but it wasn't what was shown in log statement.
Thanks in advance

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

No branches or pull requests

2 participants