feat: add TypeScript definitions for CombinedFieldsQuery #218
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds missing TypeScript definitions for
CombinedFieldsQueryinsrc/index.d.ts. The JavaScript implementation already exists and is exported properly, but TypeScript users were unable to use this query type due to missing type definitions.Changes
CombinedFieldsQueryclass definition with all methods and proper typingcombinedFieldsQueryfactory function definitiontest/typedef.test.tsType Definitions Added
Class Definition
Factory Function
Testing
Usage Example
Fixes
Resolves TypeScript compilation errors when using
CombinedFieldsQueryin TypeScript projects.Note: This query was added in Elasticsearch 7.13+ and the JavaScript implementation has been available, but TypeScript definitions were missing.