Skip to content

Commit

Permalink
update http mock - fix error "Class HTTPMock incorrectly extends base…
Browse files Browse the repository at this point in the history
… class HTTP" on run "ionic serve"
  • Loading branch information
harduino committed May 15, 2018
1 parent d80c002 commit 12371c2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/@ionic-native-mocks/plugins/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ export interface HTTPResponse {
* The status number of the response
*/
status: number;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* The headers of the response
*/
headers: any;
/**
* The URL of the response. This property will be the final URL obtained after any redirects.
*/
url: string;
/**
* The data that is in the response. This property usually exists when a promise returned by a request method resolves.
*/
data?: any;
/**
* Error response from the server. This property usually exists when a promise returned by a request method rejects.
*/
Expand Down

0 comments on commit 12371c2

Please sign in to comment.