Skip to content

Commit d68416a

Browse files
committed
some docs fixes
1 parent 94e0628 commit d68416a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rtk-query/usage/code-generation.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { ConfigFile } from '@rtk-query/codegen-openapi'
4949
const config: ConfigFile = {
5050
schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
5151
apiFile: './src/store/emptyApi.ts',
52-
apiImport: 'emptyApi',
52+
apiImport: 'emptySplitApi',
5353
outputFile: './src/store/petApi.ts',
5454
exportName: 'petApi',
5555
hooks: true,
@@ -141,13 +141,13 @@ const config: ConfigFile = {
141141
schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
142142
apiFile: './src/store/emptyApi.ts',
143143
outputFiles: {
144-
'./src/store/user.js': {
144+
'./src/store/user.ts': {
145145
filterEndpoints: [/user/i],
146146
},
147-
'./src/store/order.js': {
147+
'./src/store/order.ts': {
148148
filterEndpoints: [/order/i],
149149
},
150-
'./src/store/pet.js': {
150+
'./src/store/pet.ts': {
151151
filterEndpoints: [/pet/i],
152152
},
153153
},

0 commit comments

Comments
 (0)