UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

21 lines 664 B
import { AnySchema, StringSchema } from '../../schemas/index.js'; import { Node } from '../../programmatic/node.js'; export default class NodeDefinition extends Node { static title = 'Stringify'; static type = 'studio.tokens.string.stringify'; static description = 'Converts a value to a string'; constructor(props) { super(props); this.addInput('value', { type: AnySchema }); this.addOutput('value', { type: StringSchema }); } execute() { const { value } = this.getAllInputs(); this.outputs.value.set('' + value); } } //# sourceMappingURL=stringify.js.map