mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
feat: condition, pattern, and anchoring are now optional within queries (#38844)
* [algoliasearch]: allow optional condition query rules This is a change in the API, and was requested here https://github.com/algolia/algoliasearch-client-javascript/issues/775 * Update index.d.ts
This commit is contained in:
committed by
Ryan Cavanaugh
parent
48d7231956
commit
578a764987
Vendored
+3
-3
@@ -924,15 +924,15 @@ declare namespace algoliasearch {
|
||||
/**
|
||||
* Condition of the rule
|
||||
*/
|
||||
condition: {
|
||||
condition?: {
|
||||
/**
|
||||
* Query pattern
|
||||
*/
|
||||
pattern: string;
|
||||
pattern?: string;
|
||||
/**
|
||||
* Whether the pattern must match the beginning or the end of the query string, or both, or none.
|
||||
*/
|
||||
anchoring: 'is' | 'startsWith' | 'endsWith' | 'contains';
|
||||
anchoring?: 'is' | 'startsWith' | 'endsWith' | 'contains';
|
||||
/**
|
||||
* Rule context (format: [A-Za-z0-9_-]+).
|
||||
* When specified, the rule is contextual and applies only when the same context is specified
|
||||
|
||||
Reference in New Issue
Block a user