Skip to content

Commit

Permalink
fix(examples/typescript): fix the typings for getMeDogs
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulballal committed Sep 27, 2018
1 parent 314119d commit 42bbb9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/typescript/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import axios from "axios";
import axios, { AxiosPromise } from "axios";


export class DogService {
private url: string;
Expand All @@ -9,7 +10,7 @@ export class DogService {
this.port = endpoint.port;
}

public getMeDogs = (): Promise<any> => {
public getMeDogs = (): AxiosPromise => {
return axios.request({
baseURL: `${this.url}:${this.port}`,
headers: { Accept: "application/json" },
Expand Down

0 comments on commit 42bbb9a

Please sign in to comment.