From 42bbb9af6ab3bf9ee8ef2a5e0fd351b4749a81ca Mon Sep 17 00:00:00 2001 From: Rahul Ballal Date: Thu, 27 Sep 2018 13:55:33 +1000 Subject: [PATCH] fix(examples/typescript): fix the typings for getMeDogs --- examples/typescript/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/typescript/index.ts b/examples/typescript/index.ts index c36b60fa6..a55c95212 100644 --- a/examples/typescript/index.ts +++ b/examples/typescript/index.ts @@ -1,4 +1,5 @@ -import axios from "axios"; +import axios, { AxiosPromise } from "axios"; + export class DogService { private url: string; @@ -9,7 +10,7 @@ export class DogService { this.port = endpoint.port; } - public getMeDogs = (): Promise => { + public getMeDogs = (): AxiosPromise => { return axios.request({ baseURL: `${this.url}:${this.port}`, headers: { Accept: "application/json" },