elasticsearch: Narrow exists* return types to boolean (#29643)

This commit is contained in:
Esa-Matti Suuronen
2018-10-11 20:35:02 +03:00
committed by Andy
parent c66319d258
commit 7f7d13a9fb

View File

@@ -39,8 +39,8 @@ export class Client {
deleteScript(params: DeleteScriptParams, callback: (error: any, response: any) => void): void;
deleteTemplate(params: DeleteTemplateParams): Promise<any>;
deleteTemplate(params: DeleteTemplateParams, callback: (error: any, response: any) => void): void;
exists(params: ExistsParams): Promise<any>;
exists(params: ExistsParams, callback: (error: any, response: any, status?: any) => void): void;
exists(params: ExistsParams): Promise<boolean>;
exists(params: ExistsParams, callback: (error: any, response: boolean, status?: any) => void): void;
explain(params: ExplainParams): Promise<ExplainResponse>;
explain(params: ExplainParams, callback: (error: any, response: ExplainResponse) => void): void;
fieldStats(params: FieldStatsParams): Promise<FieldStatsResponse>;
@@ -1036,14 +1036,14 @@ export class Indices {
deleteAlias(params: IndicesDeleteAliasParams): Promise<any>;
deleteTemplate(params: IndicesDeleteTemplateParams, callback: (error: any, response: any, status: any) => void): void;
deleteTemplate(params: IndicesDeleteTemplateParams): Promise<any>;
exists(params: IndicesExistsParams, callback: (error: any, response: any, status: any) => void): void;
exists(params: IndicesExistsParams): Promise<any>;
existsAlias(params: IndicesExistsAliasParams, callback: (error: any, response: any, status: any) => void): void;
existsAlias(params: IndicesExistsAliasParams): Promise<any>;
existsTemplate(params: IndicesExistsTemplateParams, callback: (error: any, response: any, status: any) => void): void;
existsTemplate(params: IndicesExistsTemplateParams): Promise<any>;
existsType(params: IndicesExistsTypeParams, callback: (error: any, response: any, status: any) => void): void;
existsType(params: IndicesExistsTypeParams): Promise<any>;
exists(params: IndicesExistsParams, callback: (error: any, response: boolean, status: any) => void): void;
exists(params: IndicesExistsParams): Promise<boolean>;
existsAlias(params: IndicesExistsAliasParams, callback: (error: any, response: boolean, status: any) => void): void;
existsAlias(params: IndicesExistsAliasParams): Promise<boolean>;
existsTemplate(params: IndicesExistsTemplateParams, callback: (error: any, response: boolean, status: any) => void): void;
existsTemplate(params: IndicesExistsTemplateParams): Promise<boolean>;
existsType(params: IndicesExistsTypeParams, callback: (error: any, response: boolean, status: any) => void): void;
existsType(params: IndicesExistsTypeParams): Promise<boolean>;
flush(params: IndicesFlushParams, callback: (error: any, response: any, status: any) => void): void;
flush(params: IndicesFlushParams): Promise<any>;
flushSynced(params: IndicesFlushSyncedParams, callback: (error: any, response: any, status: any) => void): void;