fix: update pi-ai/pi-tui usage
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import {
|
||||
Editor,
|
||||
type EditorOptions,
|
||||
type EditorTheme,
|
||||
Key,
|
||||
matchesKey,
|
||||
type TUI,
|
||||
} from "@mariozechner/pi-tui";
|
||||
|
||||
export class CustomEditor extends Editor {
|
||||
@@ -19,8 +17,8 @@ export class CustomEditor extends Editor {
|
||||
onShiftTab?: () => void;
|
||||
onAltEnter?: () => void;
|
||||
|
||||
constructor(tui: TUI, theme: EditorTheme, options?: EditorOptions) {
|
||||
super(tui, theme, options);
|
||||
constructor(theme: EditorTheme) {
|
||||
super(theme);
|
||||
}
|
||||
handleInput(data: string): void {
|
||||
if (matchesKey(data, Key.alt("enter")) && this.onAltEnter) {
|
||||
|
||||
Reference in New Issue
Block a user