fewd/priv/static/js/dist/index.d.ts
2025-10-24 13:57:37 -07:00

23 lines
815 B
TypeScript

/**
* Home page ts/js
*
* @module
*/
declare function main(): void;
declare function on_input_key(evt: KeyboardEvent, ielt: HTMLInputElement, oelt: HTMLTextAreaElement, cb_resize: HTMLInputElement, cb_scroll: HTMLInputElement, max_height: number): Promise<void>;
declare function auto_resize_output(checkbox_element: HTMLInputElement, target_element: HTMLTextAreaElement, max_height: number): void;
declare function auto_scroll_to_bottom(checkbox_element: HTMLInputElement, target_element: HTMLTextAreaElement): void;
type ok_err<t> = {
ok: true;
result: t;
} | {
ok: false;
error: string;
};
type wfcin = {
wfcin: string;
};
type wfcout = ok_err<string>;
declare function assert(condition: boolean, fail_msg: string): void;
declare function fetch_wfcin(user_line: string): Promise<wfcout>;