Update documentation for async functions

This commit is contained in:
Viko
2018-02-25 12:21:13 -06:00
parent 10d0f19d36
commit bd5be52459

View File

@@ -5,6 +5,8 @@
* @callback TemplateFunction
* @param {Object} [locals={}]
* an object of data to be passed into the template.
* @return {(String|Promise<String>)}
* Return type depends on {@link Options}`.async`.
* @static
* @global
*/
@@ -30,6 +32,9 @@
* @param {RethrowCallback} [rethrow={@link module:ejs-internal.rethrow}]
* callback used to handle and rethrow errors
*
* @return {(String|Promise<String>)}
* Return type depends on {@link Options}`.async`.
*
* @static
* @global
*/