Interface ReadOptions<T>

interface ReadOptions<T> {
    completer?: Completer | AsyncCompleter;
    default?: T;
    edit?: boolean;
    input?: ReadableStream & {
        isTTY?: boolean;
    };
    output?: WritableStream & {
        isTTY?: boolean;
    };
    prompt?: string;
    replace?: string;
    silent?: boolean;
    terminal?: boolean;
    timeout?: number;
}

Type Parameters

  • T extends string | number = string

Properties

completer?: Completer | AsyncCompleter
default?: T
edit?: boolean
input?: ReadableStream & {
    isTTY?: boolean;
}
output?: WritableStream & {
    isTTY?: boolean;
}
prompt?: string
replace?: string
silent?: boolean
terminal?: boolean
timeout?: number