UNPKG

@rawcmd/core

Version:
24 lines (23 loc) 553 B
export declare enum ErrorCode { INVALID_COMMAND = 4000000, UNEXPECTED_BEHAVIOR = 4000001 } export declare type CommandResolver = (p: CommandInput) => any; export declare type WriterResolver = (message: string) => string; export interface StreamletBase { width: number; height: number; write(str: string): boolean; clearLine(): boolean; } export interface ErrorData { code: number; message: string; name: string; } export interface CommandInput { options: { [name: string]: any; }; tail: string; }