Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
nebrelbug committed Mar 16, 2024
1 parent 9d21224 commit f26ebc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ export function renderString<T extends object>(this: Eta, template: string, data
return render.call(this, templateFn, data);
}

export function renderStringAsync<T extends object>(this: Eta, template: string, data: T): Promise<string> {
export function renderStringAsync<T extends object>(
this: Eta,
template: string,
data: T
): Promise<string> {
const templateFn = this.compile(template, { async: true });

return renderAsync.call(this, templateFn, data);
Expand Down

0 comments on commit f26ebc3

Please sign in to comment.