@huukhanhnguyen/model / schema/nodeArgs
schema/nodeArgs
ArgCarrier
ArgCarrier = {
args?:Argument[]; }
A node carrying args — every operation-shaped lane entry and chain step. The element is the canonical Argument from @huukhanhnguyen/types (Operation/LaneNode carry the same array); the helpers here only read and write the key/input pair, so the optional constraint fields ride through untouched.
args?
optionalargs?:Argument[]
clearNodeArg()
clearNodeArg(
node,key,dropEmpty?):void
Remove one arg. dropEmpty also deletes an args array left empty.
Parameters
node
key
string
dropEmpty?
boolean = false
Returns
void
nodeArgInput()
nodeArgInput(
node,key):string|undefined
One arg's expression input, or undefined when absent.
Parameters
node
key
string
Returns
string | undefined
setNodeArg()
setNodeArg(
node,key,input,clearEmpty?):void
Write one arg input (mutates in place). clearEmpty makes a blank input REMOVE the arg (and drop an emptied args) instead of storing "".
Parameters
node
key
string
input
string
clearEmpty?
boolean = false
Returns
void