openapi-typescript-fetch
openapi-typescript-fetch copied to clipboard
Optional args instead of Record<string, never>
Hi, thank you for your cool library.
I was wondering if it is possible to make arg
parameter optional when there are no arguments (or there may be none) instead of Record<string, never>
.
Right now we have to write
const getMe = fetcher
.path('/my')
.method('get')
.create();
getMe({}); // note {}
for typescript to not yell the error
I just stumbled upon this... would love to have this changed.