Skip to content

Conversation

@shalini-saloni
Copy link

Fixes #15854

Description

This PR fixes an issue where TypeScript would throw an error when trying to access custom properties on QueryFilter objects.

Changes

  • Modified _QueryFilter type definition in types/query.d.ts to include & Record<string, any>, allowing custom properties
  • Added test case gh15854() in test/types/queries.test.ts to verify the fix

Testing

  • All TypeScript type tests pass (npm run test-tsd)
  • The new test case verifies that custom properties can be accessed without TypeScript errors

@AbdelrahmanHafez AbdelrahmanHafez added the needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity label Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs clarification This issue doesn't have enough information to be actionable. Close after 14 days of inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't access custom props of QueryFilter objects

2 participants