Skip to content

Commit

Permalink
docs(simple-react-files-structure): add responses file to the `api/…
Browse files Browse the repository at this point in the history
…types` folder
  • Loading branch information
BorysShulyak committed Jul 9, 2024
1 parent 4ec54a2 commit 5ee5b60
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ src/

- **api.ts** - file for api ednpoints.
- **hooks.ts** - file for api hooks (e.g. wrapers over `useQuery`, `useMutation` in case of Tanstack Query).
- **types** - folder for the server api payloads and entities types.
- **types** - folder for the server api entities, payload, and responses types.
- **parsers.ts** - file for the server api response parsers.

```
Expand All @@ -41,13 +41,15 @@ api /
hooks.ts
types /
payloads.ts
responses.ts
common.ts
parsers.ts
<groupN>
api.ts
hooks.ts
types /
payloads.ts
responses.ts
common.ts
parsers.ts
```
Expand Down

0 comments on commit 5ee5b60

Please sign in to comment.