You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That would just decrease type safety, as the user would be mistakenly lead to believe the type will be returned. This is the opposite of what TypeScript tries to add.
IMO the json() method should return a Promise<unknown>, not a Promise<any> or Promise<T>. But that would be a heavy breaking change.
Suggestion
Add generic types to
window.fetch
π Search Terms
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
π Motivating Example
The text was updated successfully, but these errors were encountered: