Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 761ccd2

Browse files
committed
Specify return type
1 parent 8fb5b32 commit 761ccd2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export interface BigtableOptions extends gax.GoogleAuthOptions {
121121
function getUniverseDomainOnly(
122122
options: BigtableOptions,
123123
gaxOpts?: gax.ClientOptions,
124-
) {
124+
): string | undefined {
125125
// From https://github.com/googleapis/nodejs-bigtable/blob/589540475b0b2a055018a1cb6e475800fdd46a37/src/v2/bigtable_client.ts#L120-L128.
126126
// This code for universe domain was taken from the Gapic Layer.
127127
// It is reused here to build the service path.
@@ -150,13 +150,13 @@ function getUniverseDomainOnly(
150150
*
151151
* @param {BigtableOptions} options - The Bigtable client options.
152152
* @param {gax.ClientOptions} [gaxOpts] - Optional gax client options.
153-
* @returns {object | null} An object containing the `universeDomain` property if found,
153+
* @returns {{universeDomain: string} | null} An object containing the `universeDomain` property if found,
154154
* otherwise `null`.
155155
*/
156156
function getUniverseDomainOptions(
157157
options: BigtableOptions,
158158
gaxOpts?: gax.ClientOptions,
159-
) {
159+
): {universeDomain: string} | null {
160160
const universeDomainOnly = getUniverseDomainOnly(options, gaxOpts);
161161
return universeDomainOnly ? {universeDomain: universeDomainOnly} : null;
162162
}
@@ -175,7 +175,7 @@ function getDomain(
175175
prefix: string,
176176
options: BigtableOptions,
177177
gaxOpts?: gax.ClientOptions,
178-
) {
178+
): string {
179179
const universeDomainOnly = getUniverseDomainOnly(options, gaxOpts);
180180
const suffix = universeDomainOnly ? universeDomainOnly : 'googleapis.com';
181181
return `${prefix}.${suffix}`;

0 commit comments

Comments
 (0)