-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server class in index.d.ts does not match Pretender class #337
Comments
@katehedgpeth I found the same issue as well! I would like to access |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Server class defined in
index.d.ts
does not seem to match thePretender
class in./src/pretender.ts
that it is supposed to represent. It is missing thehandledRequests
,passthroughRequests
, andunhandledRequests
properties. There may be more missing types, as I haven't examined every prop closely.It seems to me that instead of having a separate type definition file that has to stay in sync with the class, it would be better to export the types from the class directly with rollup.
I have a PR ready to go that implements this fix. I'll post it in a few minutes and reference this issue.
The text was updated successfully, but these errors were encountered: