imba-shell
Version:
Interactive debugger and REPL for Imba.
20 lines (14 loc) • 506 B
TypeScript
export default ImbaRepl;
declare class ImbaRepl {
ctxCallbacks: Array<Function>;
cmdCallbacks: Array<Function>;
update: boolean|Function;
language: string;
prompt: string;
historyPath: string;
constructor(language?: string, prompt?: string, historyPath?: string);
registerCallback(callback: Function): ImbaRepl;
registerCommand(name: string, callback: Function): ImbaRepl;
shouldUpdate(callback?: Function): ImbaRepl;
run(options?: object): Promise<any>;
}