@@ -18,7 +18,7 @@ import {promisifyAll} from '@google-cloud/promisify';
1818import { CallOptions , Operation as GaxOperation } from 'google-gax' ;
1919import { ServiceError } from '@grpc/grpc-js' ;
2020
21- import { google as btTypes } from '../protos/protos' ;
21+ import { google } from '../protos/protos' ;
2222import { Bigtable } from '.' ;
2323import { Instance } from './instance' ;
2424
@@ -40,20 +40,26 @@ export interface GenericOperationCallback<T> {
4040 ) : void ;
4141}
4242
43- export type IEmpty = btTypes . protobuf . IEmpty ;
44- export type ICluster = btTypes . bigtable . admin . v2 . ICluster ;
45- export type IOperation = btTypes . longrunning . IOperation ;
43+ export type IEmpty = google . protobuf . IEmpty ;
44+ export type ICluster = google . bigtable . admin . v2 . ICluster ;
45+ export type IOperation = google . longrunning . IOperation ;
4646
4747export type ApiResponse = [ IOperation ] ;
4848export type CreateClusterResponse = [ ICluster , GaxOperation , IOperation ] ;
4949export type BooleanResponse = [ boolean ] ;
5050export type GetClusterResponse = [ ICluster , IOperation ] ;
51+ export type GetClustersResponse = [ ICluster [ ] , IOperation ] ;
5152export type MetadataResponse = [ Metadata , IOperation ] ;
5253
5354export type CreateClusterCallback = GenericCallback < IOperation > ;
5455export type DeleteClusterCallback = GenericCallback < IOperation > ;
5556export type ExistsClusterCallback = GenericCallback < boolean > ;
5657export type GetClusterCallback = GenericClusterCallback < ICluster > ;
58+ export type GetClustersCallback = (
59+ err : ServiceError | null ,
60+ clusters ?: ICluster [ ] ,
61+ apiResponse ?: google . bigtable . admin . v2 . IListClustersResponse
62+ ) => void ;
5763export type SetClusterMetadataCallback = GenericOperationCallback < IOperation > ;
5864
5965export interface CreateClusterOptions {
0 commit comments