Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 41c73f8

Browse files
build: use TypeScript ^3.8.3, set lib to es2018 (#760)
* build: use TypeScript ^3.8.3, set lib to es2018 * fix: better typing
1 parent 247aeb7 commit 41c73f8

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"stream-events": "^1.0.4",
8585
"through2": "^3.0.0",
8686
"ts-loader": "^6.0.3",
87-
"typescript": "3.6.4",
87+
"typescript": "^3.8.3",
8888
"webpack": "^4.34.0",
8989
"webpack-cli": "^3.3.4"
9090
},

src/operationsClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ export class OperationsClient {
8282
operationsProtos: any,
8383
options: OperationsClientOptions
8484
) {
85-
const opts: OperationsClientOptions & ClientStubOptions = Object.assign(
85+
const opts = Object.assign(
8686
{
8787
servicePath: SERVICE_ADDRESS,
8888
port: DEFAULT_SERVICE_PORT,
8989
clientConfig: {},
9090
},
9191
options
92-
);
92+
) as OperationsClientOptions & ClientStubOptions;
9393

9494
const googleApiClient = ['gl-node/' + process.versions.node];
9595
if (opts.libName && opts.libVersion) {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "./node_modules/gts/tsconfig-google.json",
33
"compilerOptions": {
4-
"lib": ["es2015", "dom"],
4+
"lib": ["es2018", "dom"],
55
"rootDir": ".",
66
"outDir": "build",
77
"noImplicitAny": true,

0 commit comments

Comments
 (0)