1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- /**
16- * @namespace google
17- */
18- /**
19- * @namespace google.bigtable
20- */
21- /**
22- * @namespace google.bigtable.v2
23- */
24- /**
25- * @namespace google.bigtable.admin.v2
26- */
27- /**
28- * @namespace google.iam.v1
29- */
30- /**
31- * @namespace google.rpc
32- */
33- /**
34- * @namespace google.protobuf
35- */
36- /**
37- * @namespace google.type
38- */
39- /**
40- * @namespace google.longrunning
41- */
4215import { replaceProjectIdToken } from '@google-cloud/projectify' ;
4316import { promisifyAll } from '@google-cloud/promisify' ;
4417import arrify = require( 'arrify' ) ;
@@ -64,9 +37,12 @@ import {google} from '../protos/protos';
6437import { ServiceError } from '@grpc/grpc-js' ;
6538import * as v2 from './v2' ;
6639
40+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6741const retryRequest = require ( 'retry-request' ) ;
42+ // eslint-disable-next-line @typescript-eslint/no-var-requires
6843const streamEvents = require ( 'stream-events' ) ;
6944
45+ // eslint-disable-next-line @typescript-eslint/no-var-requires
7046const PKG = require ( '../../package.json' ) ;
7147
7248const { grpc} = new gax . GrpcClient ( ) ;
@@ -439,11 +415,8 @@ export class Bigtable {
439415 appProfileId ?: string ;
440416 projectName : string ;
441417 shouldReplaceProjectIdToken : boolean ;
442- // tslint:disable-next-line variable-name
443418 static AppProfile : AppProfile ;
444- // tslint:disable-next-line variable-name
445419 static Instance : Instance ;
446- // tslint:disable-next-line variable-name
447420 static Cluster : Cluster ;
448421
449422 constructor ( options : BigtableOptions = { } ) {
@@ -771,9 +744,9 @@ export class Bigtable {
771744 return new Instance ( this , name ) ;
772745 }
773746
774- // tslint: disable-next-line no -any
747+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
775748 request < T = any > ( config ?: any ) : AbortableDuplex ;
776- // tslint: disable-next-line no -any
749+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
777750 request < T = any > ( config ?: any , callback ?: RequestCallback < T > ) : void ;
778751 /**
779752 * Funnel all API requests through this method, to be sure we have a project ID.
@@ -784,7 +757,7 @@ export class Bigtable {
784757 * @param {object } config.reqOpts Request options.
785758 * @param {function } [callback] Callback function.
786759 */
787- // tslint: disable-next-line no -any
760+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
788761 request < T = any > (
789762 config : RequestOptions ,
790763 callback ?: ( err : ServiceError | null , resp ?: T ) => void
@@ -813,7 +786,7 @@ export class Bigtable {
813786 if ( this . shouldReplaceProjectIdToken && projectId !== '{{projectId}}' ) {
814787 reqOpts = replaceProjectIdToken ( reqOpts , projectId ! ) ;
815788 }
816- // tslint: disable-next-line:no -any
789+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
817790 const requestFn = ( gaxClient as any ) [ config . method ! ] . bind (
818791 gaxClient ,
819792 reqOpts ,
@@ -945,14 +918,13 @@ promisifyAll(Bigtable, {
945918 */
946919
947920// Allow creating a `Bigtable` instance without using the `new` keyword.
948- // tslint: disable-next-line no -any
921+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
949922( Bigtable as any ) = new Proxy ( Bigtable , {
950923 apply ( target , thisArg , argumentsList ) {
951- // tslint: disable-next-line no -any
924+ // eslint- disable-next-line @typescript-eslint/no-explicit -any
952925 return new ( target as any ) ( ...argumentsList ) ;
953926 } ,
954927} ) ;
955-
956928/**
957929 * The default export of the `@google-cloud/bigtable` package is the
958930 * {@link Bigtable} class.
@@ -986,4 +958,6 @@ promisifyAll(Bigtable, {
986958module . exports = Bigtable ;
987959module . exports . v2 = v2 ;
988960module . exports . Bigtable = Bigtable ;
961+
962+ export { v2 } ;
989963export { protos } ;
0 commit comments