Skip to content

Commit 5756534

Browse files
Copilotmrlubos
andcommitted
fix: cast merged config+options object to fix nuxt client typecheck
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
1 parent 2468808 commit 5756534

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/openapi-ts/src/plugins/@hey-api/client-nuxt/bundle

packages/openapi-ts/src/plugins/@hey-api/client-nuxt/bundle/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ export const createClient = (config: Config = {}): Client => {
184184
});
185185
};
186186

187-
const _buildUrl: Client['buildUrl'] = (options) => buildUrl({ ..._config, ...options });
187+
const _buildUrl: Client['buildUrl'] = (options) =>
188+
buildUrl({ ..._config, ...options } as typeof options);
188189

189190
return {
190191
buildUrl: _buildUrl,

0 commit comments

Comments
 (0)