类:readlinePromises.Interface
【Class: readlinePromises.Interface】
readlinePromises.Interface 类的实例是通过 readlinePromises.createInterface() 方法构建的。每个实例都与一个 input 可读的 流和一个 output 可写 流相关联。output 流用于打印用于用户输入的提示,这些输入到达 input 流并从中读取。
【Instances of the readlinePromises.Interface class are constructed using the
readlinePromises.createInterface() method. Every instance is associated with a
single input Readable stream and a single output Writable stream.
The output stream is used to print prompts for user input that arrives on,
and is read from, the input stream.】