We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to use Wreck in a typescript hapi service. I am unable figure out how to get the type definition for the Wreck.Response.
Wreck.Response
examples, none of the following work
async function fetch() : Promise<Wreck.Response> {}
causes the error "Cannot find namespace 'Wreck'"
and
import Wreck {Response} from '@hapi/wreck';
"Module '"@hapi/wreck"' has no exported member 'Response'."
The text was updated successfully, but these errors were encountered:
I don't think it's exposed right now, is inference a problem?
Sorry, something went wrong.
If you absolutely need it, you can get it pretty easily: https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAdSgUwMYGs4DMoRHAcgAEALAQzGAHoB3FDAgbgChmYBPMZOAcWRgBKyAM6QAdsOQAeACpwAvHACuY9GIg0xAPgVwhMJVDEzO0jlwhZE9dADoA5v1latLZmWHsxqbCtQxgCDFsflQSZwAKAEoALjgABVwQYEkpPkERcVSZFzgAb2Y4OBQDI2s0O0cYCIJbOoIolgBfIA
But it shouldn't be very hard to expose either.
Marsup
No branches or pull requests
Support plan
Context
How can we help?
I am trying to use Wreck in a typescript hapi service. I am unable figure out how to get the type definition for the
Wreck.Response
.examples, none of the following work
causes the error "Cannot find namespace 'Wreck'"
and
"Module '"@hapi/wreck"' has no exported member 'Response'."
The text was updated successfully, but these errors were encountered: