Skip to content

Commit 58f3660

Browse files
authored
refactor: utils (#105)
1 parent e837a12 commit 58f3660

File tree

9 files changed

+7
-7
lines changed

9 files changed

+7
-7
lines changed

src/code-templates/_shared/MethodBody/CallRequest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ts from "typescript";
22

33
import type { TsGenerator } from "../../../api";
44
import type { CodeGenerator } from "../../../types";
5-
import * as Utils from "../../class-api-client/utils";
5+
import * as Utils from "../utils";
66
import type { MethodType } from "./types";
77

88
export interface Params {

src/code-templates/_shared/MethodBody/HeaderParameter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ts from "typescript";
22

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

66
export interface Params {
77
variableName: string;

src/code-templates/_shared/MethodBody/PathParameter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ts from "typescript";
22

33
import type { TsGenerator } from "../../../api";
44
import type { CodeGenerator } from "../../../types";
5-
import * as Utils from "../../class-api-client/utils";
5+
import * as Utils from "../utils";
66
import { escapeText2 as escapeText } from "../../../utils";
77
import type { MethodType } from "./types";
88

src/code-templates/_shared/MethodBody/QueryParameter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ts from "typescript";
22

33
import type { TsGenerator } from "../../../api";
44
import * as Utils from "../../../utils";
5-
import * as UtilsExtra from "../../class-api-client/utils";
5+
import * as UtilsExtra from "../utils";
66

77
export interface Item {
88
type: "string" | "variable";

src/code-templates/_shared/MethodBody/__tests__/PathParameter-test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ts from "typescript";
44

55
import { TsGenerator } from "../../../../api";
66
import type { CodeGenerator } from "../../../../types";
7-
import * as Utils from "../../../class-api-client/utils";
7+
import * as Utils from "../../utils";
88
import * as PathParameter from "../PathParameter";
99

1010
const traverse =

src/code-templates/_shared/MethodBody/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ts from "typescript";
33
import type { TsGenerator } from "../../../api";
44
import type { CodeGenerator } from "../../../types";
55
import { escapeText2 as escapeText } from "../../../utils";
6-
import * as Utils from "../../class-api-client/utils";
6+
import * as Utils from "../utils";
77
import * as CallRequest from "./CallRequest";
88
import * as HeaderParameter from "./HeaderParameter";
99
import * as PathParameter from "./PathParameter";

src/meta.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export const Name = "@himenon/openapi-typescript-code-generator";
2-
export const Version = "0.22.2";
2+
export const Version = "0.22.3";

0 commit comments

Comments
 (0)