Skip to content

Commit

Permalink
Add return types
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbeck committed Sep 18, 2023
1 parent 8a24820 commit 0889e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/templates/expressions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0889e37

Please sign in to comment.