Skip to content

Commit

Permalink
refactor: use TS constructor properties
Browse files Browse the repository at this point in the history
Also add error type for upcoming error handling.
  • Loading branch information
jlandersen committed Jul 16, 2017
1 parent 590e0c6 commit 6943b47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vstsbuildrestclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ interface QueueBuildResult {
}

export class HttpResponse<T> {
statusCode: number;
value: T;
constructor(private statusCode: number, private value: T) {
}
}

constructor(statusCode: number, value: T) {
this.statusCode = statusCode;
this.value = value;
export class HttpResponseError {
constructor(private statusCode: number, private error: string) {
}
}

Expand Down

0 comments on commit 6943b47

Please sign in to comment.