Skip to content

Commit

Permalink
build: use TypeScript ^3.8.3, set lib to es2018 (#760)
Browse files Browse the repository at this point in the history
* build: use TypeScript ^3.8.3, set lib to es2018

* fix: better typing
  • Loading branch information
alexander-fenster authored Mar 26, 2020
1 parent 247aeb7 commit 41c73f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions src/operationsClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"lib": ["es2015", "dom"],
"lib": ["es2018", "dom"],
"rootDir": ".",
"outDir": "build",
"noImplicitAny": true,
Expand Down

0 comments on commit 41c73f8

Please sign in to comment.