mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: add missing options.signal to readlinePromises.createInterface()
From the source code, `readlinePromises.createInterface()` calls `new Interface()` imported from `internal/readline/interface`, which works the same as the non-promise version. If non-promise version accepts options.signal, it should also work for `readlinePromises.createInterface()`. Hence this information need to be indicated in the documentation. Refs: https://github.com/nodejs/node/blob/main/lib/readline/promises.js PR-URL: https://github.com/nodejs/node/pull/55456 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
ec6a48621f
commit
1f70baf3b0
1 file changed
+1
@@ -706,6 +706,7 @@ added: v17.0.0
|
||||
**Default:** `500`.
|
||||
* `tabSize` {integer} The number of spaces a tab is equal to (minimum 1).
|
||||
**Default:** `8`.
|
||||
* `signal` {AbortSignal} Allows closing the interface using an AbortSignal.
|
||||
* Returns: {readlinePromises.Interface}
|
||||
|
||||
The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface`
|
||||
|
||||
Reference in new issue
Block a user