Skip to content

Commit

Permalink
refactor: utils (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Himenon committed Apr 1, 2023
1 parent e837a12 commit 58f3660
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/code-templates/_shared/MethodBody/CallRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ts from "typescript";

import type { TsGenerator } from "../../../api";
import type { CodeGenerator } from "../../../types";
import * as Utils from "../../class-api-client/utils";
import * as Utils from "../utils";
import type { MethodType } from "./types";

export interface Params {
Expand Down
2 changes: 1 addition & 1 deletion src/code-templates/_shared/MethodBody/HeaderParameter.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ts from "typescript";

import type { TsGenerator } from "../../../api";
import * as Utils from "../../class-api-client/utils";
import * as Utils from "../utils";

export interface Params {
variableName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/code-templates/_shared/MethodBody/PathParameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ts from "typescript";

import type { TsGenerator } from "../../../api";
import type { CodeGenerator } from "../../../types";
import * as Utils from "../../class-api-client/utils";
import * as Utils from "../utils";
import { escapeText2 as escapeText } from "../../../utils";
import type { MethodType } from "./types";

Expand Down
2 changes: 1 addition & 1 deletion src/code-templates/_shared/MethodBody/QueryParameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ts from "typescript";

import type { TsGenerator } from "../../../api";
import * as Utils from "../../../utils";
import * as UtilsExtra from "../../class-api-client/utils";
import * as UtilsExtra from "../utils";

export interface Item {
type: "string" | "variable";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ts from "typescript";

import { TsGenerator } from "../../../../api";
import type { CodeGenerator } from "../../../../types";
import * as Utils from "../../../class-api-client/utils";
import * as Utils from "../../utils";
import * as PathParameter from "../PathParameter";

const traverse =
Expand Down
2 changes: 1 addition & 1 deletion src/code-templates/_shared/MethodBody/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ts from "typescript";
import type { TsGenerator } from "../../../api";
import type { CodeGenerator } from "../../../types";
import { escapeText2 as escapeText } from "../../../utils";
import * as Utils from "../../class-api-client/utils";
import * as Utils from "../utils";
import * as CallRequest from "./CallRequest";
import * as HeaderParameter from "./HeaderParameter";
import * as PathParameter from "./PathParameter";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/meta.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const Name = "@himenon/openapi-typescript-code-generator";
export const Version = "0.22.2";
export const Version = "0.22.3";

0 comments on commit 58f3660

Please sign in to comment.