chore: Upgrade to Typescript ~2.6.1#355
Conversation
src/agent/debuglet.ts
Outdated
|
|
||
| static getProjectIdFromMetadata(): Promise<string> { | ||
| return new Promise<string>((resolve, reject) => { | ||
| static getProjectIdFromMetadata(): Promise<string|undefined> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/agent/debuglet.ts
Outdated
|
|
||
| static getClusterNameFromMetadata(): Promise<string> { | ||
| return new Promise<string>((resolve, reject) => { | ||
| static getClusterNameFromMetadata(): Promise<string|undefined> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/agent/debuglet.ts
Outdated
| // TODO: Address the case when `that.debuggee` is `null`. | ||
| that.controller.listBreakpoints( | ||
| (that.debuggee as Debuggee), function(err: Error, response, body) { | ||
| (that.debuggee as Debuggee), function(err: Error|null, response, body) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/agent/debuglet.ts
Outdated
| metadata.instance( | ||
| 'attributes/cluster-name', | ||
| (err: Error, res: any, clusterName: string) => { | ||
| (err: Error|null, res?: request.RequestResponse, clusterName?: string) => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/test-controller.ts
Outdated
| const controller = new Controller(fakeDebug); | ||
| controller.register( | ||
| debuggee, function(err: Error, result: {debuggee: Debuggee}) { | ||
| debuggee, function(err: Error|null, result?: {debuggee: Debuggee}) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/test-controller.ts
Outdated
| // TODO: Determine if this type signature is correct. | ||
| controller.register( | ||
| debuggee, function(err: Error|null, result: {debuggee: Debuggee}) { | ||
| debuggee, function(err: Error|null, result?: {debuggee: Debuggee}) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/test-controller.ts
Outdated
| function( | ||
| err: Error|null, response: http.ServerResponse, | ||
| result: stackdriver.ListBreakpointsResponse) { | ||
| err: Error|null, response?: http.ServerResponse, |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/test-max-data-size.ts
Outdated
| } as stackdriver.Breakpoint; | ||
| // TODO: Determine how to remove this cast to any. | ||
| api.set(bp, function(err1: Error) { | ||
| api.set(bp, function(err1: Error|null) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
test/test-max-data-size.ts
Outdated
| location: breakpointInFoo.location | ||
| } as stackdriver.Breakpoint; | ||
| api.set(bp, function(err1: Error) { | ||
| api.set(bp, function(err1: Error|null) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
No description provided.