Skip to content

Commit

Permalink
fix(x-plugin): export deprecated values to new type
Browse files Browse the repository at this point in the history
  • Loading branch information
herrardo committed Oct 30, 2023
1 parent feae086 commit bf3ca3b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/x-components/src/types/origin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ export type QueryFeature =
| 'customer'
| 'semantics';

// TODO remove in major version. Deprecated value
/**
* @deprecated Use other features instead.
*/
type deprecatedFeatureNames = 'recommendations' | 'next_query_results' | 'semantics';

/**
* The name of the tool that generated the results.
*
Expand All @@ -46,7 +52,7 @@ export type ResultFeature =
| 'semantic_recommendations'
| 'partial_results'
| 'identifier_result'
| deprecatedFeatureNames
| deprecatedFeatureNames;

/**
* Indicates where the feature is placed.
Expand Down

0 comments on commit bf3ca3b

Please sign in to comment.