Skip to content

Commit 1db2d3b

Browse files
jonaslagoniclaude
andcommitted
fix: remove unintended export keyword from HTTP client functions
Removed the 'export' keyword from the generated HTTP client function declaration to match the pattern used by all other protocol renderers (NATS, Kafka, MQTT, AMQP, WebSocket, EventSource), which use separate export statements at the bottom of the file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0c9678f commit 1db2d3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/codegen/generators/typescript/channels/protocols/http

src/codegen/generators/typescript/channels/protocols/http/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function generateFunctionImplementation(params: {
184184
const contextDefault = !hasBody && !hasParameters ? ' = {}' : '';
185185

186186
return `${jsDoc}
187-
export async function ${functionName}(context: ${contextInterfaceName}${contextDefault}): Promise<HttpClientResponse<${replyType}>> {
187+
async function ${functionName}(context: ${contextInterfaceName}${contextDefault}): Promise<HttpClientResponse<${replyType}>> {
188188
// Apply defaults
189189
const config = {
190190
path: '${requestTopic}',

0 commit comments

Comments
 (0)