···11<script setup lang="ts">
22-import { client } from './client/client.gen';
22+import { client } from '#hey-api/client.gen';
3344// configure internal service client
55client.setConfig({
-25
examples/openapi-ts-nuxt/client/client.gen.ts
···11-// This file is auto-generated by @hey-api/openapi-ts
22-33-import {
44- type ClientOptions as DefaultClientOptions,
55- type Config,
66- createClient,
77- createConfig,
88-} from '@hey-api/client-nuxt';
99-1010-import type { ClientOptions } from './types.gen';
1111-1212-/**
1313- * The `createClientConfig()` function will be called on client initialization
1414- * and the returned object will become the client's initial configuration.
1515- *
1616- * You may want to initialize your client this way instead of calling
1717- * `setConfig()`. This is useful for example if you're using Next.js
1818- * to ensure your client always has the correct values.
1919- */
2020-export type CreateClientConfig<T extends DefaultClientOptions = ClientOptions> =
2121- (
2222- override?: Config<DefaultClientOptions & T>,
2323- ) => Config<Required<DefaultClientOptions> & T>;
2424-2525-export const client = createClient(createConfig<ClientOptions>());
-3
examples/openapi-ts-nuxt/client/index.ts
···11-// This file is auto-generated by @hey-api/openapi-ts
22-export * from './sdk.gen';
33-export * from './types.gen';