Skip to content

Commit 3e66f6e

Browse files
continue[bot]Continue
andcommitted
fix(terminal-security): add explicit type annotation for TypeScript
Add explicit ToolPolicy type annotation to mostRestrictivePolicy variable to fix TypeScript compilation error in CI. TypeScript was inferring a narrower type that didn't include 'disabled', causing type mismatch errors. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <[email protected]> Co-authored-by: Username <[email protected]>
1 parent bbb72d1 commit 3e66f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/terminal-security/src/evaluateTerminalCommandSecurity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function evaluateTerminalCommandSecurity(
5656

5757
// If there are multiple lines, evaluate each separately
5858
if (commandLines.length > 1) {
59-
let mostRestrictivePolicy = basePolicy;
59+
let mostRestrictivePolicy: ToolPolicy = basePolicy;
6060

6161
for (const line of commandLines) {
6262
const trimmedLine = line.trim();

0 commit comments

Comments
 (0)