From 080ac2d22ca4a2037455e977af3240090f7db765 Mon Sep 17 00:00:00 2001 From: Qiaosen Huang Date: Thu, 3 Aug 2017 19:52:25 +0800 Subject: [PATCH] fix typing errors. --- src/RestfulService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RestfulService.ts b/src/RestfulService.ts index 0c5cd34..a45aab6 100644 --- a/src/RestfulService.ts +++ b/src/RestfulService.ts @@ -1,7 +1,7 @@ import { Metadata, } from '@t2ee/core'; -import RestfulClient from './RestfulCLient'; +import RestfulClient from './RestfulClient'; import MethodDescription from './MethodDescription'; export default class RestfulService { @@ -93,7 +93,7 @@ export default class RestfulService { type: Metadata.get(`t2ee:restful:method:${key}:type`, service.prototype) || 'json', }; } - return new Proxy({}, new RestfulClient( + return new Proxy({} as any, new RestfulClient( description, this._baseUrl, this._headers,