selectize/selectize.js

index.d.ts function signatures are incorrect

Opened this issue · 0 comments

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.