@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
38 lines (37 loc) • 1.06 kB
TypeScript
import { BaseWidget } from './widgets.types';
export declare const textEventContract: {
eventSignatures: {
click: {
emitPayloadSchema: {
id: string;
fields: {
column: {
type: "number";
isRequired: true;
};
row: {
type: "number";
isRequired: true;
};
text: {
type: "text";
};
};
};
};
};
};
export type TextEventContract = typeof textEventContract;
export interface TextWidgetOptions {
isScrollEnabled?: boolean;
shouldAutoScrollWhenAppendingContent?: boolean;
wordWrap?: boolean;
text?: string;
}
export interface TextWidget extends BaseWidget<TextEventContract> {
readonly type: 'text';
getText(): string;
setText(content: string): void;
getScrollX(): number;
getScrollY(): number;
}