From 0889e37ba67e6f5906b6a1acd000281000085b6d Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Mon, 18 Sep 2023 10:54:07 -0700 Subject: [PATCH] Add return types --- src/templates/expressions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/expressions.ts b/src/templates/expressions.ts index 6ed7a1d3..c006c321 100644 --- a/src/templates/expressions.ts +++ b/src/templates/expressions.ts @@ -63,7 +63,7 @@ export function renderTemplate(template: Renderable, context: Context): Primitiv return value; } -export function renderArray(array: Renderable[], context: Context) { +export function renderArray(array: Renderable[], context: Context): Renderable[] { for (let i = 0; i < array.length; i++) { if (hasTemplateProperty(array[i])) { return renderArrayProperties(array, context); @@ -161,7 +161,7 @@ export class Expression { return this.meta && this.meta.source; } - truthy(context: Context) { + truthy(context: Context): boolean { const blockType = this.meta.blockType; if (blockType === 'else') return true; const value = this.get(context, true);