refactor: type variable inspect handlers

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-Claude)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
zhsama
2026-01-30 23:54:26 +08:00
parent a87560d667
commit 51ffab8a1a
5 changed files with 24 additions and 5 deletions

View File

@ -25,7 +25,7 @@ type Props = {
currentVar?: currentVarType
varType: VarInInspectType
varList: VarInInspect[]
handleSelect: (state: any) => void
handleSelect: (state: currentVarType) => void
handleView?: () => void
handleClear?: () => void
}
@ -50,7 +50,7 @@ const Group = ({
const visibleVarList = isEnv ? varList : varList.filter(v => v.visible)
const handleSelectVar = (varItem: any, type?: string) => {
const handleSelectVar = (varItem: VarInInspect, type?: VarInInspectType) => {
if (type === VarInInspectType.environment) {
handleSelect({
nodeId: VarInInspectType.environment,