Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit f9e436b

Browse files
chore(deps): update to @types/nodejs 14.x (#962)
1 parent a0df5b7 commit f9e436b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@types/mocha": "^8.0.0",
6868
"@types/mv": "^2.1.0",
6969
"@types/ncp": "^2.0.3",
70-
"@types/node": "~10.17.0",
70+
"@types/node": "^14.17.2",
7171
"@types/proxyquire": "^1.3.28",
7272
"@types/semver": "^7.0.0",
7373
"@types/tmp": "^0.2.0",

src/agent/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class Controller extends ServiceObject {
122122
'/debuggees/' +
123123
encodeURIComponent(debuggee.id) +
124124
'/breakpoints?' +
125-
qs.stringify(query);
125+
qs.stringify(query as qs.ParsedUrlQueryInput);
126126
that.request(
127127
{uri, json: true},
128128
(err, body: stackdriver.ListBreakpointsResponse, response) => {

system-test/test-e2e.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('@google-cloud/debug end-to-end behavior', () => {
5959

6060
beforeEach(function () {
6161
this.timeout(10 * 1000);
62-
return new Promise((resolve, reject) => {
62+
return new Promise<void>((resolve, reject) => {
6363
let numChildrenReady = 0;
6464

6565
// Process a status message sent from a child process.
@@ -117,9 +117,8 @@ describe('@google-cloud/debug end-to-end behavior', () => {
117117
child.process.on('message', handler);
118118

119119
children.push(child);
120-
121-
child.process.stdout.on('data', stdoutHandler(i));
122-
child.process.stderr.on('data', stdoutHandler(i));
120+
child.process.stdout!.on('data', stdoutHandler(i));
121+
child.process.stderr!.on('data', stdoutHandler(i));
123122
}
124123
});
125124
});
@@ -132,7 +131,7 @@ describe('@google-cloud/debug end-to-end behavior', () => {
132131
assert(child.process);
133132
const childProcess = child.process as cp.ChildProcess;
134133
childProcess.kill();
135-
return new Promise((resolve, reject) => {
134+
return new Promise<void>((resolve, reject) => {
136135
const timeout = setTimeout(() => {
137136
reject(new Error('A child process failed to exit.'));
138137
}, 3000);

0 commit comments

Comments
 (0)