Skip to content

Commit

Permalink
feat: openapiPath support OpenAPI3
Browse files Browse the repository at this point in the history
  • Loading branch information
liangskyli committed May 23, 2023
1 parent 6414662 commit 03cc04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/openapi-gen-ts/src/gen/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import type { IPrettierOptions } from '@liangskyli/utils';
import { colors, getAbsolutePath, removeFilesSync } from '@liangskyli/utils';
import fs from 'fs-extra';
import type { OpenAPITSOptions } from 'openapi-typescript';
import type { OpenAPI3, OpenAPITSOptions } from 'openapi-typescript';
import path from 'path';
import type { IGenSchemaOpts } from './file/gen-schema';
import { generatorFile } from './generator-file';

export type IGenTsDataOpts = {
openapiPath: string | URL;
openapiPath: string | URL | OpenAPI3;
genTsDir?: string;
prettierOptions?: IPrettierOptions;
/**
Expand Down

0 comments on commit 03cc04d

Please sign in to comment.