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

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

Successfully merging this pull request may close these issues.

Can't access custom props of QueryFilter objects

1 participant