Skip to content

Commit 782a45b

Browse files
committed
Fix: no export for SomeOf helper type.
1 parent 9e72bc4 commit 782a45b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

example/example.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ type Type1 = {
33
features: Type1;
44
}[];
55

6-
export type SomeOf<T> = T[keyof T];
6+
type SomeOf<T> = T[keyof T];
77

88
type GetV1UserRetrieveInput = {
99
/** a numeric string containing the id of the user */

src/integration-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export const makeSomeOfHelper = () =>
140140
f.createTypeReferenceNode("T"),
141141
makeKeyOf("T"),
142142
),
143-
{ isPublic: true, params: { T: undefined } },
143+
{ params: { T: undefined } },
144144
);
145145

146146
export const makePublicMethod = (

tests/unit/__snapshots__/integration.spec.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Integration > Feature #945: should have configurable treatment of optionals 0 1`] = `
4-
"export type SomeOf<T> = T[keyof T];
4+
"type SomeOf<T> = T[keyof T];
55
66
type PostV1TestWithDashesInput = {
77
opt?: string;
@@ -139,7 +139,7 @@ client.provide("get /v1/user/retrieve", { id: "10" });
139139
`;
140140
141141
exports[`Integration > Feature #945: should have configurable treatment of optionals 1 1`] = `
142-
"export type SomeOf<T> = T[keyof T];
142+
"type SomeOf<T> = T[keyof T];
143143
144144
type PostV1TestWithDashesInput = {
145145
opt: string | undefined;
@@ -277,7 +277,7 @@ client.provide("get /v1/user/retrieve", { id: "10" });
277277
`;
278278
279279
exports[`Integration > Feature #945: should have configurable treatment of optionals 2 1`] = `
280-
"export type SomeOf<T> = T[keyof T];
280+
"type SomeOf<T> = T[keyof T];
281281
282282
type PostV1TestWithDashesInput = {
283283
opt: string;
@@ -415,7 +415,7 @@ client.provide("get /v1/user/retrieve", { id: "10" });
415415
`;
416416
417417
exports[`Integration > Feature #1470: Custom brands > should by handled accordingly 1`] = `
418-
"export type SomeOf<T> = T[keyof T];
418+
"type SomeOf<T> = T[keyof T];
419419
420420
type PostV1CustomInput = {
421421
string: boolean;
@@ -481,7 +481,7 @@ exports[`Integration > Should generate a client for example API 1`] = `
481481
features: Type1;
482482
}[];
483483
484-
export type SomeOf<T> = T[keyof T];
484+
type SomeOf<T> = T[keyof T];
485485
486486
type GetV1UserRetrieveInput = {
487487
/** a numeric string containing the id of the user */
@@ -932,7 +932,7 @@ exports[`Integration > Should generate a types for example API 1`] = `
932932
features: Type1;
933933
}[];
934934
935-
export type SomeOf<T> = T[keyof T];
935+
type SomeOf<T> = T[keyof T];
936936
937937
type GetV1UserRetrieveInput = {
938938
/** a numeric string containing the id of the user */
@@ -1282,7 +1282,7 @@ export type MethodPath = keyof Input;
12821282
`;
12831283
12841284
exports[`Integration > Should support multiple response schemas depending on status code 1`] = `
1285-
"export type SomeOf<T> = T[keyof T];
1285+
"type SomeOf<T> = T[keyof T];
12861286
12871287
type PostV1MtplInput = {
12881288
test: number;
@@ -1348,7 +1348,7 @@ export type MethodPath = keyof Input;
13481348
`;
13491349
13501350
exports[`Integration > Should treat optionals the same way as z.infer() by default 1`] = `
1351-
"export type SomeOf<T> = T[keyof T];
1351+
"type SomeOf<T> = T[keyof T];
13521352
13531353
type PostV1TestWithDashesInput = {
13541354
opt?: string | undefined;

0 commit comments

Comments
 (0)