Skip to main content

output

Decorator that marks a property as an output port for custom nodes.

TypeNameInterface Description
Functionsoutput(type?: string): (target: any, key: string) => any

Function: Decorator that marks a property as an output port for custom nodes. Output ports allow data to flow from this node to other nodes in a visual scripting graph.

Example

@customNode()
export class StringConcatNode extends BasicScriptNode {
@input()
public stringA: string = "";

@input()
public stringB: string = "";

@output()
public concatenated: string = "";
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies