Skip to content

Commit 6192939

Browse files
committed
fix readme
Signed-off-by: aabidsofi19 <mailtoaabid01@gmail.com>
1 parent 7468da3 commit 6192939

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ rtk-query-codegen -i /path/to/schema.yml -o /path/to/generated-api.js -c /path/t
2424

2525
### Simple usage
2626

27-
```json
27+
```
2828
{
2929
apiFile: string
3030
schemaFile: string
@@ -51,7 +51,7 @@ rtk-query-codegen -i /path/to/schema.yml -o /path/to/generated-api.js -c /path/t
5151

5252
If you only want to include a few endpoints, you can use the `filterEndpoints` config option to filter your endpoints.
5353

54-
```json
54+
```
5555
{
5656
// ...
5757
// should only have endpoints loginUser, placeOrder, getOrderById, deleteOrder
@@ -63,7 +63,7 @@ If you only want to include a few endpoints, you can use the `filterEndpoints` c
6363

6464
If an endpoint is generated as a mutation instead of a query or the other way round, you can override that.
6565

66-
```json
66+
```
6767
{
6868
// ...
6969
"endpointOverrides": [
@@ -81,7 +81,7 @@ Setting `hooks: true` will generate `useQuery` and `useMutation` hook exports. I
8181

8282
### Multiple output files
8383

84-
```json
84+
```
8585
8686
schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
8787
apiFile: './src/store/emptyApi.ts',

0 commit comments

Comments
 (0)