declare module 'js-worker-search' {
  type IndexMode = 'ALL_SUBSTRINGS' | 'EXACT_WORDS' | 'PREFIXES';

  class SearchApi {
    constructor(indexMode?: IndexMode, tokenizePattern?: RegExp, caseSensitive?: boolean);
    public indexDocument(uid: any, text: string): SearchApi;
    public search(query: string): Promise<Array<any>>;
  }

  export default SearchApi;
}

declare module 'js-worker-search' {
  type IndexMode = 'ALL_SUBSTRINGS' | 'EXACT_WORDS' | 'PREFIXES';

  class SearchApi {
    constructor(indexMode?: IndexMode, tokenizePattern?: RegExp, caseSensitive?: boolean);
    public indexDocument(uid: any, text: string): SearchApi;
    public search(query: string): Promise<any[]>;
  }

  export default SearchApi;
}

Fix eslint warnings for @typescript-eslint/array-type
fix(eslint): Fix eslint warnings for @typescript-eslint/array-type
