pretenderjs / pretender

A mock server library with a nice routing DSL
MIT License
1.26k stars 158 forks source link

Import Pretender in Typescript yields empty module #229

Closed jorgelainfiesta closed 5 years ago

jorgelainfiesta commented 6 years ago

Hi!

I'm trying to use Pretender in a Glimmer application but I'm having trouble importing the module. Using import Pretender from 'pretender' doesn't resolve anything because there's apparently no default export. I'm now using import * as pretender from 'pretender' to get the whole thing but I just get an empty object.

I saw there's type support and tried to read the related issues (that are now closed) but I still don't know how to make it work properly.

Am I missing something?

Thanks, Jorge L

marcoow commented 6 years ago

@jorgelainfiesta: did you have a look at #223? I just had a brief look and that seems to work?

stephanos commented 5 years ago

I think this can be closed now, no?

givanse commented 5 years ago

solved with: https://github.com/pretenderjs/pretender/pull/243

xg-wang commented 5 years ago

Released as v3.0.1