Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

h5 / glsk-ai-assistant

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • glsk-ai-assistant
  • app
  • components
  • workflow
  • nodes
  • variable-assigner
  • utils.ts
  • liimin's avatar
    init · 0a3e16a2
    liimin committed Apr 18, 2025
    0a3e16a2
utils.ts 342 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import type { Var } from '../../types'
import { VarType } from '../../types'

export const checkNodeValid = () => {
  return true
}

export const filterVar = (varType: VarType) => {
  return (v: Var) => {
    if (varType === VarType.any)
      return true
    if (v.type === VarType.any)
      return true
    return v.type === varType
  }
}