Skip to content

PersistentAI API Documentation / @persistent-ai/fireflow-nodes / updateOutputSecretPortType

Function: updateOutputSecretPortType()

updateOutputSecretPortType(node, port): void

Defined in: packages/fireflow-nodes/src/nodes/secret/utils.ts:53

Parameters

node

INode

port

IPort

Returns

void

On Port Update

handler: syncs the output SecretPort's secretType config whenever the input secretType enum changes.

Place on a secretType PortEnum input that has a sibling 'secret' PortSecret output.

Usage:

ts
@OnPortUpdate(updateOutputSecretPortType)
secretType?: SecretType

Licensed under BUSL-1.1