View Code? Open in Web Editor
NEW
๐ด A tiny human-friendly JavaScript HTTP client library based on the browser with no dependencies.
License: MIT License
TypeScript 96.28%
JavaScript 3.72%
nixify's Introduction
Hi ๐, I'm Omar Chadidi
- ๐ฌ Ask me about VueJs, Typescript, or anything related to the front end
- ๐ซ How to reach me [email protected]
nixify's People
Contributors
Watchers
nixify's Issues
When using TypeScript and trying to add typing to the response data it shows 'data' is of type 'unknown'
![code](https://user-images.githubusercontent.com/18153283/192110676-33d71d90-639e-4d2e-bf7d-e05fa1f674c2.png)
const { data } = await http.get<Post>(`/posts/${id}`, {
query: {
test: "something"
}
}).json();