mirror of
https://github.com/CryptKeeperZK/ejs.git
synced 2026-01-09 07:27:56 -05:00
Update documentation for async functions
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user