UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

32 lines (31 loc) 869 B
import { BaseWidget } from './widgets.types'; export declare const inputEventContract: { eventSignatures: { submit: { emitPayloadSchema: { id: string; fields: { value: { type: "raw"; isRequired: true; options: { valueType: string; }; }; }; }; }; cancel: {}; }; }; export type InputEventContract = typeof inputEventContract; export interface InputWidgetOptions { value?: string; label?: string; placeholder?: string; } export interface InputWidget extends BaseWidget<InputEventContract> { readonly type: 'input'; getValue(): string | undefined; setValue(value: string): void; }