File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -963,9 +963,7 @@ export class Index<T extends RecordAny = RecordAny> {
963963 * settings.
964964 * @returns Promise containing object of the enqueued update
965965 */
966- updateTypoTolerance (
967- typoTolerance : Partial < TypoTolerance > | null ,
968- ) : EnqueuedTaskPromise {
966+ updateTypoTolerance ( typoTolerance : TypoTolerance ) : EnqueuedTaskPromise {
969967 return this . #httpRequestsWithTask. patch ( {
970968 path : `indexes/${ this . uid } /settings/typo-tolerance` ,
971969 body : typoTolerance ,
Original file line number Diff line number Diff line change @@ -522,15 +522,15 @@ export type RankingRules = string[] | null;
522522export type StopWords = string [ ] | null ;
523523export type Synonyms = Record < string , string [ ] > | null ;
524524export type TypoTolerance = {
525- enabled : boolean ;
526- disableOnAttributes : string [ ] ;
527- disableOnNumbers : boolean ;
528- disableOnWords : string [ ] ;
529- minWordSizeForTypos : {
530- oneTypo : number ;
531- twoTypos : number ;
525+ enabled ? : boolean | null ;
526+ disableOnAttributes ? : string [ ] | null ;
527+ disableOnNumbers ? : boolean | null ;
528+ disableOnWords ? : string [ ] | null ;
529+ minWordSizeForTypos ? : {
530+ oneTypo ? : number | null ;
531+ twoTypos ? : number | null ;
532532 } ;
533- } ;
533+ } | null ;
534534export type SeparatorTokens = string [ ] | null ;
535535export type NonSeparatorTokens = string [ ] | null ;
536536export type Dictionary = string [ ] | null ;
You can’t perform that action at this time.
0 commit comments