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
Thanks for you nice work!
We use application/json;charset=UTF-8 and not just application/json as it is assumed in types.d.ts and hence the response data type becomes unknown.
application/json;charset=UTF-8
application/json
types.d.ts
unknown
I wonder if it's possible to extend
Fetcher.for<paths>(); to optional Fetcher.for<paths, 'application/json;charset=UTF-8'>();
Fetcher.for<paths>();
Fetcher.for<paths, 'application/json;charset=UTF-8'>();
and/or
fetcher.path('/xzy').method('get').create(); to optional fetcher.path('/xyz').method<'application/json;charset=UTF-8'>('get').create();
fetcher.path('/xzy').method('get').create();
fetcher.path('/xyz').method<'application/json;charset=UTF-8'>('get').create();
The text was updated successfully, but these errors were encountered:
JSON should always be utf-8 so specifying it as such is redundant. See eg: https://en.wikipedia.org/wiki/JSON#Character_encoding
utf-8
Sorry, something went wrong.
No branches or pull requests
Thanks for you nice work!
We use
application/json;charset=UTF-8
and not justapplication/json
as it is assumed intypes.d.ts
and hence the response data type becomesunknown
.I wonder if it's possible to extend
Fetcher.for<paths>();
to optional
Fetcher.for<paths, 'application/json;charset=UTF-8'>();
and/or
fetcher.path('/xzy').method('get').create();
to optional
fetcher.path('/xyz').method<'application/json;charset=UTF-8'>('get').create();
The text was updated successfully, but these errors were encountered: