mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 05:55:17 -07:00
Disallow unsafe type assertions (#18688)
This commit is contained in:
committed by
GitHub
parent
bce1caefd0
commit
fd65416a2f
@@ -48,6 +48,7 @@ export class ToolModificationHandler {
|
||||
typeof toolCall.request.args
|
||||
>(
|
||||
toolCall.request.args,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||
modifyContext as ModifyContext<typeof toolCall.request.args>,
|
||||
editorType,
|
||||
signal,
|
||||
@@ -76,6 +77,7 @@ export class ToolModificationHandler {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
|
||||
const modifyContext = toolCall.tool.getModifyContext(
|
||||
signal,
|
||||
) as ModifyContext<typeof toolCall.request.args>;
|
||||
|
||||
Reference in New Issue
Block a user