Replies: 1 comment
-
Hey, its seems like a problem with typescript! I havent tried yet but your function needs to respect the interface provided! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I'm trying to create a mock for express' Request type and I'm getting an error when defining a value for its
get
method as defined herehttps://github.com/DefinitelyTyped/DefinitelyTyped/blob/bd4c4ba6aa8c6ad9739c17d1023349a5f9f496cd/types/express-serve-static-core/index.d.ts#L396
The method has the following overload:
When I write the following
I get this error:
Is there a solution for that?
Beta Was this translation helpful? Give feedback.
All reactions