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

Commit

Permalink
chore: remove @types/request (#750)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicKramer authored Aug 20, 2019
1 parent ea59132 commit 2671d66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"@types/nock": "^10.0.0",
"@types/node": "~10.14.0",
"@types/proxyquire": "^1.3.28",
"@types/request": "^2.48.1",
"@types/semver": "^6.0.0",
"@types/uuid": "^3.4.4",
"codecov": "^3.0.4",
Expand Down
8 changes: 4 additions & 4 deletions src/agent/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import {ServiceObject} from '@google-cloud/common';
import * as assert from 'assert';
import * as qs from 'querystring';
import * as request from 'request'; // Only for type declarations.
import * as t from 'teeny-request';

import {URL} from 'url';

Expand Down Expand Up @@ -97,7 +97,7 @@ export class Controller extends ServiceObject {
debuggee: Debuggee,
callback: (
err: Error | null,
response?: request.Response,
response?: t.Response,
body?: stackdriver.ListBreakpointsResponse
) => void
): void {
Expand Down Expand Up @@ -125,7 +125,7 @@ export class Controller extends ServiceObject {
} else if (response.statusCode === 404) {
// The v2 API returns 404 (google.rpc.Code.NOT_FOUND) when the agent
// registration expires. We should re-register.
callback(null, (response as {}) as request.Response);
callback(null, (response as {}) as t.Response);
return;
} else if (response.statusCode !== 200) {
callback(
Expand All @@ -137,7 +137,7 @@ export class Controller extends ServiceObject {
} else {
body = body || {};
that.nextWaitToken = body.nextWaitToken;
callback(null, (response as {}) as request.Response, body);
callback(null, (response as {}) as t.Response, body);
}
}
);
Expand Down

0 comments on commit 2671d66

Please sign in to comment.