UNPKG

@tokens-studio/graph-engine

Version:

An execution engine to handle Token Studios generators and resolvers

27 lines 729 B
import { INodeDefinition, ToInput, ToOutput } from '../../index.js'; import { Node } from '../../programmatic/node.js'; export default class NodeDefinition<T> extends Node { static title: string; static type: string; static description: string; inputs: ToInput<{ /** * The array to extract the value from */ array: T[]; /** * The index to extract the value from. * @default 0 */ index: number; }>; outputs: ToOutput<{ /** * The value at the given index */ value: T; }>; constructor(props: INodeDefinition); execute(): void | Promise<void>; } //# sourceMappingURL=indexArray.d.ts.map