diff --git a/package.json b/package.json index 1ed8dcf9b..ebbe1e097 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "stream-events": "^1.0.4", "through2": "^3.0.0", "ts-loader": "^6.0.3", - "typescript": "3.6.4", + "typescript": "^3.8.3", "webpack": "^4.34.0", "webpack-cli": "^3.3.4" }, diff --git a/src/operationsClient.ts b/src/operationsClient.ts index 98102f0a7..1fabd1849 100644 --- a/src/operationsClient.ts +++ b/src/operationsClient.ts @@ -82,14 +82,14 @@ export class OperationsClient { operationsProtos: any, options: OperationsClientOptions ) { - const opts: OperationsClientOptions & ClientStubOptions = Object.assign( + const opts = Object.assign( { servicePath: SERVICE_ADDRESS, port: DEFAULT_SERVICE_PORT, clientConfig: {}, }, options - ); + ) as OperationsClientOptions & ClientStubOptions; const googleApiClient = ['gl-node/' + process.versions.node]; if (opts.libName && opts.libVersion) { diff --git a/tsconfig.json b/tsconfig.json index 186392a3b..0691c562c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "./node_modules/gts/tsconfig-google.json", "compilerOptions": { - "lib": ["es2015", "dom"], + "lib": ["es2018", "dom"], "rootDir": ".", "outDir": "build", "noImplicitAny": true,