-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
741 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@hey-api/client-nuxt': patch | ||
'@hey-api/openapi-ts': patch | ||
--- | ||
|
||
fix: correctly type default value for Nuxt client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
// This file is auto-generated by @hey-api/openapi-ts | ||
|
||
import { createClient, createConfig } from '@hey-api/client-nuxt'; | ||
import { | ||
type ClientOptions as DefaultClientOptions, | ||
type Config, | ||
createClient, | ||
createConfig, | ||
} from '@hey-api/client-nuxt'; | ||
|
||
export const client = createClient(createConfig()); | ||
import type { ClientOptions } from './types.gen'; | ||
|
||
/** | ||
* The `createClientConfig()` function will be called on client initialization | ||
* and the returned object will become the client's initial configuration. | ||
* | ||
* You may want to initialize your client this way instead of calling | ||
* `setConfig()`. This is useful for example if you're using Next.js | ||
* to ensure your client always has the correct values. | ||
*/ | ||
export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> = | ||
( | ||
override?: Config<DefaultClientOptions & T>, | ||
) => Config<Required<DefaultClientOptions> & T>; | ||
|
||
export const client = createClient(createConfig<ClientOptions>()); |
Oops, something went wrong.