promises.Readline.prototype.rollback - Node documentation
method promises.Readline.prototype.rollback

Usage

import { promises } from "node:readline";

The rl.rollback methods clears the internal list of pending actions without sending it to the associated stream.

Return Type

this

this