Typescript types not found
markus-s24 opened this issue · comments
When trying to import types like HttpResponse from vue-resource they are not found since vue-resource 1.5.1. This worked with prior versions.
Steps to reproduce
Use a vue resource import in a typescript file, e.g.:
import { HttpResponse } from 'vue-resource';
What is Expected?
Type HttpResponse will successfully be imported.
What is actually happening?
Error: Module '".../node_modules/vue-resource/types/index"' has no exported member 'HttpResponse'.
Workaround
import VueResource from 'vue-resource';
and use qualified types like VueResource.HttpResponse in the code.