mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-01 21:20:44 +00:00
chore(build/compiler): Enable a bunch of strict TS compiler options. (#6138)
This commit is contained in:
parent
8fae227e8d
commit
a90aeb3d8f
28 changed files with 141 additions and 84 deletions
|
|
@ -143,7 +143,9 @@ ${textContent}
|
|||
return `Processing URLs and instructions from prompt: "${displayPrompt}"`;
|
||||
}
|
||||
|
||||
async shouldConfirmExecute(): Promise<ToolCallConfirmationDetails | false> {
|
||||
override async shouldConfirmExecute(): Promise<
|
||||
ToolCallConfirmationDetails | false
|
||||
> {
|
||||
if (this.config.getApprovalMode() === ApprovalMode.AUTO_EDIT) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -337,7 +339,9 @@ export class WebFetchTool extends BaseDeclarativeTool<
|
|||
}
|
||||
}
|
||||
|
||||
protected validateToolParams(params: WebFetchToolParams): string | null {
|
||||
protected override validateToolParams(
|
||||
params: WebFetchToolParams,
|
||||
): string | null {
|
||||
const errors = SchemaValidator.validate(
|
||||
this.schema.parametersJsonSchema,
|
||||
params,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue