Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson authored and astahmer committed Aug 9, 2024
1 parent dfe456d commit d04f061
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 53 deletions.
8 changes: 4 additions & 4 deletions packages/typed-openapi/tests/generator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ describe("generator", () => {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.put>
Expand All @@ -316,7 +316,7 @@ describe("generator", () => {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.post>
Expand All @@ -325,7 +325,7 @@ describe("generator", () => {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.get>
Expand All @@ -334,7 +334,7 @@ describe("generator", () => {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.delete>
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typed-openapi/tests/snapshots/docker.openapi.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2142,7 +2142,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.get>

Expand All @@ -2151,7 +2151,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.post>

Expand All @@ -2160,7 +2160,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.delete>

Expand All @@ -2169,7 +2169,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.put>

Expand All @@ -2178,7 +2178,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("head", this.baseUrl + path, params[0]);
return this.fetcher("head", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.head>
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typed-openapi/tests/snapshots/docker.openapi.io-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3557,7 +3557,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.get>

Expand All @@ -3566,7 +3566,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.post>

Expand All @@ -3575,7 +3575,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.delete>

Expand All @@ -3584,7 +3584,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.put>

Expand All @@ -3593,7 +3593,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("head", this.baseUrl + path, params[0]);
return this.fetcher("head", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.head>
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typed-openapi/tests/snapshots/docker.openapi.typebox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3808,7 +3808,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<Static<TEndpoint>["parameters"]>
): Promise<Static<TEndpoint>["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<Static<TEndpoint>["response"]>;
}
// </ApiClient.get>

Expand All @@ -3817,7 +3817,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<Static<TEndpoint>["parameters"]>
): Promise<Static<TEndpoint>["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<Static<TEndpoint>["response"]>;
}
// </ApiClient.post>

Expand All @@ -3826,7 +3826,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<Static<TEndpoint>["parameters"]>
): Promise<Static<TEndpoint>["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<Static<TEndpoint>["response"]>;
}
// </ApiClient.delete>

Expand All @@ -3835,7 +3835,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<Static<TEndpoint>["parameters"]>
): Promise<Static<TEndpoint>["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<Static<TEndpoint>["response"]>;
}
// </ApiClient.put>

Expand All @@ -3844,7 +3844,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<Static<TEndpoint>["parameters"]>
): Promise<Static<TEndpoint>["response"]> {
return this.fetcher("head", this.baseUrl + path, params[0]);
return this.fetcher("head", this.baseUrl + path, params[0]) as Promise<Static<TEndpoint>["response"]>;
}
// </ApiClient.head>
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typed-openapi/tests/snapshots/docker.openapi.valibot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3475,7 +3475,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<v.InferOutput<TEndpoint>["parameters"]>
): Promise<v.InferOutput<TEndpoint>["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<v.InferOutput<TEndpoint>["response"]>;
}
// </ApiClient.get>

Expand All @@ -3484,7 +3484,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<v.InferOutput<TEndpoint>["parameters"]>
): Promise<v.InferOutput<TEndpoint>["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<v.InferOutput<TEndpoint>["response"]>;
}
// </ApiClient.post>

Expand All @@ -3493,7 +3493,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<v.InferOutput<TEndpoint>["parameters"]>
): Promise<v.InferOutput<TEndpoint>["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<v.InferOutput<TEndpoint>["response"]>;
}
// </ApiClient.delete>

Expand All @@ -3502,7 +3502,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<v.InferOutput<TEndpoint>["parameters"]>
): Promise<v.InferOutput<TEndpoint>["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<v.InferOutput<TEndpoint>["response"]>;
}
// </ApiClient.put>

Expand All @@ -3511,7 +3511,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<v.InferOutput<TEndpoint>["parameters"]>
): Promise<v.InferOutput<TEndpoint>["response"]> {
return this.fetcher("head", this.baseUrl + path, params[0]);
return this.fetcher("head", this.baseUrl + path, params[0]) as Promise<v.InferOutput<TEndpoint>["response"]>;
}
// </ApiClient.head>
}
Expand Down
10 changes: 5 additions & 5 deletions packages/typed-openapi/tests/snapshots/docker.openapi.yup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3982,7 +3982,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<y.InferType<TEndpoint["parameters"]>>
): Promise<y.InferType<TEndpoint["response"]>> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<y.InferType<TEndpoint["response"]>>;
}
// </ApiClient.get>

Expand All @@ -3991,7 +3991,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<y.InferType<TEndpoint["parameters"]>>
): Promise<y.InferType<TEndpoint["response"]>> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<y.InferType<TEndpoint["response"]>>;
}
// </ApiClient.post>

Expand All @@ -4000,7 +4000,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<y.InferType<TEndpoint["parameters"]>>
): Promise<y.InferType<TEndpoint["response"]>> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<y.InferType<TEndpoint["response"]>>;
}
// </ApiClient.delete>

Expand All @@ -4009,7 +4009,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<y.InferType<TEndpoint["parameters"]>>
): Promise<y.InferType<TEndpoint["response"]>> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<y.InferType<TEndpoint["response"]>>;
}
// </ApiClient.put>

Expand All @@ -4018,7 +4018,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<y.InferType<TEndpoint["parameters"]>>
): Promise<y.InferType<TEndpoint["response"]>> {
return this.fetcher("head", this.baseUrl + path, params[0]);
return this.fetcher("head", this.baseUrl + path, params[0]) as Promise<y.InferType<TEndpoint["response"]>>;
}
// </ApiClient.head>
}
Expand Down
8 changes: 4 additions & 4 deletions packages/typed-openapi/tests/snapshots/petstore.arktype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["infer"]["parameters"]>
): Promise<TEndpoint["infer"]["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<TEndpoint["infer"]["response"]>;
}
// </ApiClient.put>

Expand All @@ -408,7 +408,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["infer"]["parameters"]>
): Promise<TEndpoint["infer"]["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<TEndpoint["infer"]["response"]>;
}
// </ApiClient.post>

Expand All @@ -417,7 +417,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["infer"]["parameters"]>
): Promise<TEndpoint["infer"]["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<TEndpoint["infer"]["response"]>;
}
// </ApiClient.get>

Expand All @@ -426,7 +426,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["infer"]["parameters"]>
): Promise<TEndpoint["infer"]["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<TEndpoint["infer"]["response"]>;
}
// </ApiClient.delete>
}
Expand Down
8 changes: 4 additions & 4 deletions packages/typed-openapi/tests/snapshots/petstore.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.put>

Expand All @@ -306,7 +306,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.post>

Expand All @@ -315,7 +315,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.get>

Expand All @@ -324,7 +324,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<TEndpoint["parameters"]>
): Promise<TEndpoint["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<TEndpoint["response"]>;
}
// </ApiClient.delete>
}
Expand Down
8 changes: 4 additions & 4 deletions packages/typed-openapi/tests/snapshots/petstore.io-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("put", this.baseUrl + path, params[0]);
return this.fetcher("put", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.put>

Expand All @@ -407,7 +407,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("post", this.baseUrl + path, params[0]);
return this.fetcher("post", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.post>

Expand All @@ -416,7 +416,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("get", this.baseUrl + path, params[0]);
return this.fetcher("get", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.get>

Expand All @@ -425,7 +425,7 @@ export class ApiClient {
path: Path,
...params: MaybeOptionalArg<t.TypeOf<TEndpoint>["parameters"]>
): Promise<t.TypeOf<TEndpoint>["response"]> {
return this.fetcher("delete", this.baseUrl + path, params[0]);
return this.fetcher("delete", this.baseUrl + path, params[0]) as Promise<t.TypeOf<TEndpoint>["response"]>;
}
// </ApiClient.delete>
}
Expand Down
Loading

0 comments on commit d04f061

Please sign in to comment.