◐ Shell
clean mode source ↗

doc: add missing assert return types · nodejs/node@b74e0ff

Original file line numberDiff line numberDiff line change

@@ -1097,6 +1097,7 @@ added: v10.0.0

10971097

* `asyncFn` {Function|Promise}

10981098

* `error` {RegExp|Function}

10991099

* `message` {string}

1100+

* Returns: {Promise}

11001101
11011102

Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately

11021103

calls the function and awaits the returned promise to complete. It will then

@@ -2041,6 +2042,7 @@ added: v10.0.0

20412042

* `asyncFn` {Function|Promise}

20422043

* `error` {RegExp|Function|Object|Error}

20432044

* `message` {string}

2045+

* Returns: {Promise}

20442046
20452047

Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately

20462048

calls the function and awaits the returned promise to complete. It will then