import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/original_deps.ts";
const { Number } = Cliffy;
Number prompt representation.
Methods
protected
addChar(char: string): voidAdd char to input.
protected
format(value: number): stringFormat output value.
protected
getValue(): stringGet input input.
protected
handleEvent(event: KeyCode): Promise<void>Handle user input event.
protected
manipulateIndex(decrease?: boolean)Decrease/increase input number.
protected
success(value: number): string | undefinedprotected
transform(value: string): number | undefinedMap input value to output value.
protected
validate(value: string): boolean | stringValidate input value.
Decrease input number.
Increase input number.