Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { TemplatesGenConfig } from "./src/commands/generate-templates/configurat
import { CodeGenConfig } from "./src/configuration.js";
import { HTTP_CLIENT } from "./src/constants.js";
import { generateApi, generateTemplates } from "./src/index.js";
import type { GenerateApiParams, HttpClientType } from "./types/index.js";
import type {
GenerateApiConfiguration,
HttpClientType,
} from "./types/index.js";

const templateGenBaseConfig = new TemplatesGenConfig({});

Expand Down Expand Up @@ -287,7 +290,9 @@ const generateCommand = defineCommand({
},
},
run: async ({ args }) => {
const customConfig = await loadConfig<GenerateApiParams>({
const customConfig = await loadConfig<
Partial<GenerateApiConfiguration["config"]>
>({
name: "swagger-typescript-api",
configFile: args["custom-config"],
});
Expand Down
Loading