diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index fbf37f83fb..b143015d9c 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -6,7 +6,7 @@ // Jeffery Grajkowski // Margus Lamp // Ahmad Ferdous Bin Alam -// Simon Schick +// Simon Schick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -466,7 +466,7 @@ export interface MGetParams extends GenericParams { } export interface MGetResponse { - docs?: GetResponse[]; + docs?: Array>; } export interface MSearchParams extends GenericParams { @@ -477,7 +477,7 @@ export interface MSearchParams extends GenericParams { } export interface MSearchResponse { - responses?: SearchResponse[]; + responses?: Array>; } export interface MSearchTemplateParams extends GenericParams { @@ -627,7 +627,7 @@ export interface SearchResponse { hits: { total: number; max_score: number; - hits: { + hits: Array<{ _index: string; _type: string; _id: string; @@ -638,7 +638,7 @@ export interface SearchResponse { fields?: any; highlight?: any; inner_hits?: any; - }[]; + }>; }; aggregations?: any; } diff --git a/types/elasticsearch/tslint.json b/types/elasticsearch/tslint.json index aacabc1e5a..e9003e412b 100644 --- a/types/elasticsearch/tslint.json +++ b/types/elasticsearch/tslint.json @@ -2,7 +2,6 @@ "extends": "dtslint/dt.json", "rules": { "no-unnecessary-generics": false, - "array-type": false, "no-empty-interface": false } }