Skip to content

Commit e6a48be

Browse files
committed
fix: 修复 swagger-typescript-api 的类型问题
fix #2
1 parent a0817c7 commit e6a48be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { PluginOption } from 'vite'
22
import { generateApi, GenerateApiParams } from 'swagger-typescript-api'
33

4-
export type GenerateApiOption = Omit<GenerateApiParams, 'url' | 'spec'> | Omit<GenerateApiParams, 'input' | 'spec'> | Omit<GenerateApiParams, 'input' | 'url'>
4+
export type GenerateApiOption = GenerateApiParams
55

66
function vitePluginSwaggerTypescriptApi(option: GenerateApiOption): PluginOption {
77
if (!option) {

0 commit comments

Comments
 (0)