feat: 脚本录制功能完善
This commit is contained in:
5
global.d.ts
vendored
5
global.d.ts
vendored
@@ -88,6 +88,10 @@ declare global {
|
||||
params: []
|
||||
return: Promise<{ success: boolean; code?: string; error?: string }>
|
||||
}
|
||||
[IPC_EVENTS.SCRIPT_CODEGEN]: {
|
||||
params: [id: string, url?: string]
|
||||
return: Promise<{ success: boolean; code?: string; error?: string }>
|
||||
}
|
||||
}
|
||||
|
||||
type TabId = string
|
||||
@@ -142,6 +146,7 @@ declare global {
|
||||
run: (id: string) => Promise<ScriptExecutionResult>,
|
||||
startRecording: (url?: string) => Promise<{ success: boolean; code?: string; error?: string }>,
|
||||
stopRecording: () => Promise<{ success: boolean; code?: string; error?: string }>,
|
||||
codegen: (id: string, url?: string) => Promise<{ success: boolean; code?: string; error?: string }>,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user