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

chore: Upgrade to Typescript ~2.6.1#355

Merged
DominicKramer merged 6 commits intogoogleapis:masterfrom
DominicKramer:chore/upgrade-typescript-2.6.1
Nov 6, 2017
Merged

chore: Upgrade to Typescript ~2.6.1#355
DominicKramer merged 6 commits intogoogleapis:masterfrom
DominicKramer:chore/upgrade-typescript-2.6.1

Conversation

@DominicKramer
Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 3, 2017

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.


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.

// 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.

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.

Copy link
Copy Markdown
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM w/ nits.

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.

// 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.

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.

} 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.

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.

@DominicKramer DominicKramer merged commit cdee56f into googleapis:master Nov 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants