Skip to content

[tabulator-tables] Fix setHeaderFilterValue method signature#75185

Open
Tyoneb wants to merge 1 commit into
DefinitelyTyped:masterfrom
Tyoneb:fix-set-header-filter-value-method
Open

[tabulator-tables] Fix setHeaderFilterValue method signature#75185
Tyoneb wants to merge 1 commit into
DefinitelyTyped:masterfrom
Tyoneb:fix-set-header-filter-value-method

Conversation

@Tyoneb

@Tyoneb Tyoneb commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Please fill in this template.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: Header filtering
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

⚠️ Note that the documentation is not really explicit about the type signature. The use case is a header filter of type list with multiple selection allowed. In that case, Tabulator will expect an array of values. I added a test case that covers this use case but the types do not explicitly enforce this relation (I believe it would be very hard to do so given that 2 separate properties interact with one another...). But it's better than the current types that throw an error on valid code.

@typescript-automation

typescript-automation Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@Tyoneb Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by type definition owners or DT maintainers

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 75185,
  "author": "Tyoneb",
  "headCommitOid": "e89d6d4918b8e9602c0658664d878dcfe0f29fb8",
  "mergeBaseOid": "d177495f205f54ac2e82985f7468dec87c3fe8d2",
  "lastPushDate": "2026-06-30T20:04:05.000Z",
  "lastActivityDate": "2026-06-30T20:04:05.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "tabulator-tables",
      "kind": "edit",
      "files": [
        {
          "path": "types/tabulator-tables/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/tabulator-tables/tabulator-tables-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "jojoshua",
        "mike-lischke"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 4847479717,
  "ciResult": "pass"
}

@typescript-automation typescript-automation Bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Jun 30, 2026
@typescript-automation typescript-automation Bot moved this to Waiting for Code Reviews in Pull Request Status Board Jun 30, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @Jojoshua @mike-lischke — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Popular package This PR affects a popular package (as counted by NPM download counts).

Projects

Status: Waiting for Code Reviews

Development

Successfully merging this pull request may close these issues.

1 participant