UNPKG

@smythos/sdk

Version:
26 lines (25 loc) 854 B
import { Agent } from '../../Agent/Agent.class'; import { InputSettings } from '../../types/SDKTypes'; export interface TFTimestampSettings { name?: string; /** Timestamp Format */ format?: 'unix' | 'iso' | 'timestamp'; } export type TFTimestampInputs = { [key: string]: InputSettings; }; export type TFTimestampOutputs = { [key: string]: any; }; export declare function FTimestamp(settings?: TFTimestampSettings, agent?: Agent): { /** Component outputs - access via .out.OutputName */ out: TFTimestampOutputs; /** * 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: TFTimestampInputs) => void; };