fork of hey-api/openapi-ts because I need some additional things
1import { createClient } from '@hey-api/openapi-ts';
2
3export function heyApiPlugin(options?: {
4 /**
5 * `@hey-api/openapi-ts` configuration options.
6 */
7 config?: Parameters<typeof createClient>[0];
8}) {
9 return {
10 configResolved: async () => {
11 await createClient(options?.config);
12 },
13 enforce: 'pre',
14 name: 'hey-api-plugin',
15 };
16}