pretenderjs / pretender

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

Fix #321: improve ResponseHandler types #322

Closed mrijke closed 3 years ago

mrijke commented 3 years ago

Fix the ResponseHandler type by introducing a new type that extends the ResponseHandler and adds the instance-specific attributes to it (async and numberOfCalls). This will allow TS clients to use the API as described in the README.