Hoping to wrap the client for single arg calls #1620
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
openapi-fetch
Relevant to the openapi-fetch library
Description
This library is super helpful. I'm looking to essentially pass in all options in one shot vs. creating the client, specifying the method, and then the path, as the generated OpenAPI spec spans a ton of files. Also, I'd like to throw on error vs. having to check data/errors.
So far, I've been using this workaround, which is nice, but not as simple as I'd like.
Proposal
What I'm going for is something like this syntax, but I can't for the life of me seem to get the types to line up:
Checklist
I'm definitely open to helping, but like I said I've struck out thus far. Not even sure it's possible given the current method/path approach in play.
The text was updated successfully, but these errors were encountered: