mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 22:05:50 +00:00
feat: 完成一大波类型修复, 虽然 any 很多
This commit is contained in:
@@ -75,7 +75,7 @@ export function registerPendingAsyncHook({
|
||||
pluginId,
|
||||
command,
|
||||
startTime: Date.now(),
|
||||
timeout,
|
||||
timeout: timeout as number,
|
||||
responseAttachmentSent: false,
|
||||
shellCommand,
|
||||
stopProgressInterval,
|
||||
|
||||
@@ -211,9 +211,9 @@ When done, return your result using the ${SYNTHETIC_OUTPUT_TOOL_NAME} tool with:
|
||||
// Check for structured output in attachments
|
||||
if (
|
||||
message.type === 'attachment' &&
|
||||
message.attachment.type === 'structured_output'
|
||||
(message as any).attachment.type === 'structured_output'
|
||||
) {
|
||||
const parsed = hookResponseSchema().safeParse(message.attachment.data)
|
||||
const parsed = hookResponseSchema().safeParse((message as any).attachment.data)
|
||||
if (parsed.success) {
|
||||
structuredOutputResult = parsed.data
|
||||
logForDebugging(
|
||||
|
||||
@@ -3,4 +3,3 @@ export type HookEvent = any;
|
||||
export type AsyncHookJSONOutput = any;
|
||||
export type SyncHookJSONOutput = any;
|
||||
export type HOOK_EVENTS = any;
|
||||
export type HookEvent = any;
|
||||
|
||||
Reference in New Issue
Block a user