mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fix lint even more
This commit is contained in:
parent
cfff51283f
commit
e4013bda94
10
types/elasticsearch/index.d.ts
vendored
10
types/elasticsearch/index.d.ts
vendored
@ -6,7 +6,7 @@
|
||||
// Jeffery Grajkowski <https://github.com/pushplay>
|
||||
// Margus Lamp <https://github.com/mlamp>
|
||||
// Ahmad Ferdous Bin Alam <https://github.com/ahmadferdous>
|
||||
// Simon Schick <demwizzy@gmail.com>
|
||||
// Simon Schick <https://github.com/SimonSchick>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@ -466,7 +466,7 @@ export interface MGetParams extends GenericParams {
|
||||
}
|
||||
|
||||
export interface MGetResponse<T> {
|
||||
docs?: GetResponse<T>[];
|
||||
docs?: Array<GetResponse<T>>;
|
||||
}
|
||||
|
||||
export interface MSearchParams extends GenericParams {
|
||||
@ -477,7 +477,7 @@ export interface MSearchParams extends GenericParams {
|
||||
}
|
||||
|
||||
export interface MSearchResponse<T> {
|
||||
responses?: SearchResponse<T>[];
|
||||
responses?: Array<SearchResponse<T>>;
|
||||
}
|
||||
|
||||
export interface MSearchTemplateParams extends GenericParams {
|
||||
@ -627,7 +627,7 @@ export interface SearchResponse<T> {
|
||||
hits: {
|
||||
total: number;
|
||||
max_score: number;
|
||||
hits: {
|
||||
hits: Array<{
|
||||
_index: string;
|
||||
_type: string;
|
||||
_id: string;
|
||||
@ -638,7 +638,7 @@ export interface SearchResponse<T> {
|
||||
fields?: any;
|
||||
highlight?: any;
|
||||
inner_hits?: any;
|
||||
}[];
|
||||
}>;
|
||||
};
|
||||
aggregations?: any;
|
||||
}
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-unnecessary-generics": false,
|
||||
"array-type": false,
|
||||
"no-empty-interface": false
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user