Skip to content

Commit 1aa707f

Browse files
committed
Fix default imports
1 parent a285872 commit 1aa707f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/rtk-query-codegen-openapi/src/utils/getV3Doc.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import SwaggerParser from '@apidevtools/swagger-parser';
2+
import type { OpenAPIV3 } from 'openapi-types';
23
// @ts-ignore
34
import converter from 'swagger2openapi';
45

5-
import type { OpenAPIV3 } from 'openapi-types';
6-
76
export async function getV3Doc(spec: string): Promise<OpenAPIV3.Document> {
87
const doc = await SwaggerParser.bundle(spec);
98
const isOpenApiV3 = 'openapi' in doc && doc.openapi.startsWith('3');

packages/rtk-query-codegen-openapi/src/utils/prettier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as prettier from 'prettier';
2-
import * as path from 'path';
1+
import path from 'node:path';
2+
import prettier from 'prettier';
33

44
const EXTENSION_TO_PARSER: Record<string, string> = {
55
ts: 'typescript',

0 commit comments

Comments
 (0)