first commit

This commit is contained in:
douboer@gmail.com
2026-03-03 13:23:14 +08:00
commit 3b7c1d558a
161 changed files with 28120 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
import type { IDisposable } from "../types";
/**
* Render function - element props
*/
export interface IElementProps {
id?: string;
class?: string;
content?: string;
html?: string;
children?: (string | Node)[];
props?: object;
}
/**
* Key Bindings to the Input
*/
interface IKeyBindingAction {
(arg1: unknown, arg2?: unknown): void;
}
export interface IKeyBindings {
[key: string]: IKeyBindingAction;
}
/**
* Renderer
*/
export interface IRenderer extends IDisposable {
canInput: boolean;
setKeyBindings(options: IKeyBindings): void;
mount(el: HTMLElement): void;
focusInput(): void;
blurInput(): void;
clearConsole(): void;
output(data: string): void;
}