Skip to content

index.d.ts function signatures are incorrect #2145

Open
@dvg-p4

Description

@dvg-p4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions