Skip to content

Commit 7216cba

Browse files
committed
Update type import in docs
1 parent 9735c4b commit 7216cba

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ We provide a package for RTK Query code generation from OpenAPI schemas. It is p
2929
Create an empty api using `createApi` like
3030

3131
```ts no-transpile title="src/store/emptyApi.ts"
32-
3332
// Or from '@reduxjs/toolkit/query' if not using the auto-generated hooks
3433
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'
3534

@@ -43,8 +42,7 @@ export const emptySplitApi = createApi({
4342
Generate a config file (json, js or ts) with contents like
4443

4544
```ts no-transpile title="openapi-config.ts"
46-
47-
import { ConfigFile } from '@rtk-query/codegen-openapi'
45+
import type { ConfigFile } from '@rtk-query/codegen-openapi'
4846

4947
const config: ConfigFile = {
5048
schemaFile: 'https://petstore3.swagger.io/api/v3/openapi.json',
@@ -67,7 +65,6 @@ npx @rtk-query/codegen-openapi openapi-config.ts
6765
### Programmatic usage
6866

6967
```ts no-transpile title="src/store/petApi.ts"
70-
7168
import { generateEndpoints } from '@rtk-query/codegen-openapi'
7269

7370
const api = await generateEndpoints({

0 commit comments

Comments
 (0)