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;
}

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;
}

--- 
+++ 
@@ -4,7 +4,7 @@
   class SearchApi {
     constructor(indexMode?: IndexMode, tokenizePattern?: RegExp, caseSensitive?: boolean);
     public indexDocument(uid: any, text: string): SearchApi;
-    public search(query: string): Promise<Array<any>>;
+    public search(query: string): Promise<any[]>;
   }
 
   export default SearchApi;
fix(eslint): Fix eslint warnings for @typescript-eslint/array-type
