mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-26 10:14:26 +08:00
elasticsearch: Narrow exists* return types to boolean (#29643)
This commit is contained in:
20
types/elasticsearch/index.d.ts
vendored
20
types/elasticsearch/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user