Skip to content

Commit

Permalink
fix: clientConfig can be omitted (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Oct 9, 2019
1 parent c135b15 commit 1e84aa3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions templates/typescript_gapic/package.json.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
"description": "{{ api.naming.productName }} client for Node.js",
"main": "build/src/index.js",
"dependencies": {
"google-gax": "^1.7.0"
"google-gax": "^1.7.2"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/through2": "^2.0.34",
"gts": "^0.9.0",
"mocha": "^6.0.0",
"typescript": "~3.5.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ClientOptions extends gax.GrpcClientOptions,
gax.ClientStubOptions {
libName?: string;
libVersion?: string;
clientConfig: gax.ClientConfig;
clientConfig?: gax.ClientConfig;
fallback?: boolean;
apiEndpoint?: string;
}
Expand Down
1 change: 0 additions & 1 deletion typescript/test/test_application_ts/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const clientOptions = {
port: 7469,
};

// @ts-ignore TODO: client options types are incompatible
const client = new showcase.EchoClient(clientOptions);
await testEcho(client);
await testExpand(client);
Expand Down
2 changes: 1 addition & 1 deletion typescript/test/testdata/echo_client_baseline.ts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface ClientOptions extends gax.GrpcClientOptions,
gax.ClientStubOptions {
libName?: string;
libVersion?: string;
clientConfig: gax.ClientConfig;
clientConfig?: gax.ClientConfig;
fallback?: boolean;
apiEndpoint?: string;
}
Expand Down

0 comments on commit 1e84aa3

Please sign in to comment.