Download web/app/components/workflow/nodes/variable-assigner/utils.ts from Underground-Digital/Workflow-Engine: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/app/components/workflow/nodes/variable-assigner/utils.ts
- Command line
-
hf download hf://spaces/Underground-Digital/Workflow-Engine/web/app/components/workflow/nodes/variable-assigner/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/Underground-Digital/Workflow-Engine/resolve/main/web/app/components/workflow/nodes/variable-assigner/utils.ts
342 Bytes
| 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 | |
| } | |
| } | |