Skip to content

Commit 304a86f

Browse files
authored
Merge branch 'main' into feat/use-mutation-hooks
2 parents 12d7660 + ce29020 commit 304a86f

25 files changed

Lines changed: 370 additions & 148 deletions

File tree

.changeset/bitter-lines-hammer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/shared": patch
3+
---
4+
5+
**output**: context file is optional

.changeset/busy-plums-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**dsl(reserved)**: expand reserved keywords with more globals

.changeset/dry-waves-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**plugin(@pinia/colada)**: fix: pass error type generic to `defineQueryOptions`

.changeset/poor-beds-arrive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hey-api/openapi-ts": patch
3+
---
4+
5+
**output(header)**: fix: support function signature in client and core files

dev/hey-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// @ts-ignore
2-
import type { CreateClientConfig } from './client/client.gen';
2+
import type { CreateClientConfig } from './.gen/typescript/client.gen';
33

44
// @ts-ignore
55
export const createClientConfig: CreateClientConfig = (config) => ({

dev/playground.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { DefinePlugin, IR } from '@hey-api/openapi-ts';
22

33
// import { createOpencode } from '@opencode-ai/sdk';
4-
import { PetStore } from './.gen/sdk.gen.ts';
4+
import { PetStore } from './.gen/typescript/sdk.gen.ts';
55

66
type MyPluginConfig = { readonly name: 'myplugin' };
77
type MyPlugin = DefinePlugin<MyPluginConfig>;

dev/python/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { UserConfig } from '@hey-api/openapi-python';
22

3-
type PluginConfig = NonNullable<NonNullable<UserConfig['plugins']>[number]>;
3+
export type PluginConfig = NonNullable<NonNullable<UserConfig['plugins']>[number]>;
44

55
export function sdk(
66
options?: Omit<Extract<PluginConfig, { name: '@hey-api/python-sdk' }>, 'name'>,

dev/python/presets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { PluginConfig } from './plugins';
12
import { pydantic, sdk } from './plugins';
23

34
export const presets = {
@@ -19,7 +20,7 @@ export const presets = {
1920
sdk(),
2021
pydantic(),
2122
],
22-
} as const;
23+
} as const satisfies Record<string, () => ReadonlyArray<PluginConfig>>;
2324

2425
export type PresetKey = keyof typeof presets;
2526

dev/typescript/plugins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { UserConfig } from '@hey-api/openapi-ts';
22

3-
type PluginConfig = NonNullable<NonNullable<UserConfig['plugins']>[number]>;
3+
export type PluginConfig = NonNullable<NonNullable<UserConfig['plugins']>[number]>;
44

55
export function typescript(
66
options?: Omit<Extract<PluginConfig, { name: '@hey-api/typescript' }>, 'name'>,

dev/typescript/presets.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { PluginConfig } from './plugins';
12
import { sdk, tanstackReactQuery, transformers, typescript, valibot, zod } from './plugins';
23

34
export const presets = {
@@ -36,7 +37,7 @@ export const presets = {
3637
valibot({ metadata: true }),
3738
zod({ metadata: true }),
3839
],
39-
} as const;
40+
} as const satisfies Record<string, () => ReadonlyArray<PluginConfig>>;
4041

4142
export type PresetKey = keyof typeof presets;
4243

0 commit comments

Comments
 (0)