Skip to content

Commit 5a05bd6

Browse files
committed
fix(node): Fix TypeScript types for createInstrumentedClaudeQuery
1 parent b7f8ca6 commit 5a05bd6

File tree

1 file changed

+2
-2
lines changed
  • packages/node/src/integrations/tracing/claude-code

1 file changed

+2
-2
lines changed

packages/node/src/integrations/tracing/claude-code/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ async function ensurePatchedQuery(): Promise<void> {
3636
}
3737

3838
const client = getClient();
39-
const integration = client?.getIntegrationByName<ClaudeCodeOptions>(CLAUDE_CODE_INTEGRATION_NAME);
40-
const options = integration?.options || {};
39+
const integration = client?.getIntegrationByName(CLAUDE_CODE_INTEGRATION_NAME);
40+
const options = (integration as any)?.options as ClaudeCodeOptions | undefined || {};
4141

4242
_globalPatchedQuery = patchClaudeCodeQuery(claudeSDK.query, options);
4343
} catch (error) {

0 commit comments

Comments
 (0)