feat: init
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
import type nodeReadlinePromises from "node:readline/promises";
|
||||
import type { Abortable } from "node:events";
|
||||
import { Interface as _Interface } from "../interface.mjs";
|
||||
export declare class Interface extends _Interface implements nodeReadlinePromises.Interface {
|
||||
question(query: string): Promise<string>;
|
||||
question(query: string, options: Abortable): Promise<string>;
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import { Interface as _Interface } from "../interface.mjs";
|
||||
export class Interface extends _Interface {
|
||||
question(query, options) {
|
||||
return Promise.resolve("");
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import type nodeReadlinePromises from "node:readline/promises";
|
||||
import type { Direction } from "node:readline";
|
||||
export declare class Readline implements nodeReadlinePromises.Readline {
|
||||
clearLine(dir: Direction);
|
||||
clearScreenDown();
|
||||
commit(): Promise<void>;
|
||||
cursorTo(x: number, y?: number | undefined);
|
||||
moveCursor(dx: number, dy: number);
|
||||
rollback();
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
export class Readline {
|
||||
clearLine(dir) {
|
||||
return this;
|
||||
}
|
||||
clearScreenDown() {
|
||||
return this;
|
||||
}
|
||||
commit() {
|
||||
return Promise.resolve();
|
||||
}
|
||||
cursorTo(x, y) {
|
||||
return this;
|
||||
}
|
||||
moveCursor(dx, dy) {
|
||||
return this;
|
||||
}
|
||||
rollback() {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user