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

index.d.ts function signatures are incorrect #2145

Open
4 tasks done
dvg-p4 opened this issue Oct 9, 2024 · 0 comments
Open
4 tasks done

index.d.ts function signatures are incorrect #2145

dvg-p4 opened this issue Oct 9, 2024 · 0 comments

Comments

@dvg-p4
Copy link

dvg-p4 commented Oct 9, 2024

I did:

  • Search for if my issue has already been submitted
  • Make sure I'm reporting something precise that needs to be fixed
  • Give my issue a descriptive and concise title
  • [N/A] Create a minimal working example on JsFiddle or Codepen
    (or gave a link to a demo on the Selectize docs)
  • Indicate precise steps to reproduce in numbers and the result,
    like below

[replace me with a short description of issue]

Steps to reproduce:

  1. Make a typescript project that uses selectize
  2. Write e.g. selectize.clearOptions(true) anywhere

Expected result:

This will work

Actual result:

error TS2554: Expected 0 arguments, but got 1.

145       selectize.clearOptions(true);
                                 ~~~~

Cause:

The signature specified in index.d.ts does not match the actual function signature. This seems to be true for a number of functions.

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

1 participant