Property 'json' does not exist on type '{}'
问题 I have an abstract base class in Typescript that looks like this: import {Http, Headers, Response} from 'angular2/http'; export abstract class SomeService { constructor(private http:Http) {} protected post(path:string, data:Object) { let stringifiedData = JSON.stringify(data); let headers = new Headers(); headers.append('Content-Type', 'application/json'); headers.append('Accept', 'application/json'); this.http.post(`http://api.example.com/${path}`, stringifiedData, { headers }) .map(res =>