mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Added more precise JSDoc to email content generator
refs https://github.com/TryGhost/Toolbox/issues/292 - Provided better type checking/suggestions
This commit is contained in:
parent
30f8b0a446
commit
32e42ae276
@ -24,7 +24,7 @@ class EmailContentGenerator {
|
|||||||
* @param {Object} options
|
* @param {Object} options
|
||||||
* @param {string} options.template - HTML template name to use for generation
|
* @param {string} options.template - HTML template name to use for generation
|
||||||
* @param {Object} [options.data] - variable data to use during HTML template compilation
|
* @param {Object} [options.data] - variable data to use during HTML template compilation
|
||||||
* @returns {Promise} resolves with an object containing html and text properties
|
* @returns {Promise<{html: String, text: String}>} resolves with an object containing html and text properties
|
||||||
*/
|
*/
|
||||||
async getContent(options) {
|
async getContent(options) {
|
||||||
const defaults = {
|
const defaults = {
|
||||||
|
Loading…
Reference in New Issue
Block a user