diff --git a/types/node/readline.d.ts b/types/node/readline.d.ts index 6cb572e3136dd85..670040c7c0c4b5f 100644 --- a/types/node/readline.d.ts +++ b/types/node/readline.d.ts @@ -12,6 +12,13 @@ declare module "readline" { class Interface extends events.EventEmitter { readonly terminal: boolean; + + // Need direct access to line/cursor data, for use in external processes + // see: https://github.com/nodejs/node/issues/30347 + /** The current input data */ + readonly line: string; + /** The current cursor position in the input line */ + readonly cursor: number; /** * NOTE: According to the documentation: