UNPKG

@smythos/sdk

Version:
26 lines (25 loc) 825 B
import { Agent } from '../../Agent/Agent.class'; import { InputSettings } from '../../types/SDKTypes'; export interface TECMASandboxSettings { name?: string; /** Code */ code?: string; } export type TECMASandboxInputs = { [key: string]: InputSettings; }; export type TECMASandboxOutputs = { [key: string]: any; }; export declare function ECMASandbox(settings?: TECMASandboxSettings, agent?: Agent): { /** Component outputs - access via .out.OutputName */ out: TECMASandboxOutputs; /** * Create or Connect the component inputs * if the input does not exist, it will be created * @examples * - component.in({ Input: source.out.data }) * - component.in({ Input: { type: 'string', source:source.out.data } }) */ in: (inputs: TECMASandboxInputs) => void; };