Skip to content

Commit ba86720

Browse files
authored
Merge pull request #2988 from hey-api/refactor/dsl-type-nodes-4
refactor: tanstack dsl
2 parents b828270 + 74deb5e commit ba86720

File tree

80 files changed

+305
-477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+305
-477
lines changed

dev/openapi-ts.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ export default defineConfig(() => {
4141
// 'dutchie.json',
4242
// 'invalid',
4343
// 'full.yaml',
44-
'openai.yaml',
44+
// 'openai.yaml',
4545
// 'opencode.yaml',
46+
'pagination-ref.yaml',
4647
// 'sdk-instance.yaml',
4748
// 'string-with-format.yaml',
4849
// 'transformers.json',

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/asClass/@tanstack/angular-query-experimental.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/axios/@tanstack/angular-query-experimental.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3737
if (options?.query) {
3838
params.query = options.query;
3939
}
40-
return [
41-
params
42-
];
40+
return [params];
4341
};
4442

4543
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/fetch/@tanstack/angular-query-experimental.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/angular-query-experimental/name-builder/@tanstack/angular-query-experimental.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const getFooD = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/asClass/@tanstack/react-query.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/axios/@tanstack/react-query.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3737
if (options?.query) {
3838
params.query = options.query;
3939
}
40-
return [
41-
params
42-
];
40+
return [params];
4341
};
4442

4543
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/fetch/@tanstack/react-query.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const serviceWithEmptyTagQueryKey = (options?: Options<ServiceWithEmptyTagData>) => createQueryKey("serviceWithEmptyTag", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/react-query/name-builder/@tanstack/react-query.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const getFooD = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

packages/openapi-ts-tests/main/test/__snapshots__/2.0.x/plugins/@tanstack/solid-query/asClass/@tanstack/solid-query.gen.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
3636
if (options?.query) {
3737
params.query = options.query;
3838
}
39-
return [
40-
params
41-
];
39+
return [params];
4240
};
4341

4442
export const getFooQueryKey = (options?: Options<GetFooData>) => createQueryKey("getFoo", options);

0 commit comments

Comments
 (0)