Skip to content

Commit

Permalink
refactor: ♻️ update return type for renderDefDataNode to Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 23, 2024
1 parent 42658c5 commit 143af5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/promptdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function renderDefNode(def: PromptDefNode): string {
return res
}

async function renderDefDataNode(n: PromptDefDataNode): string {
async function renderDefDataNode(n: PromptDefDataNode): Promise<string> {
const { name, headers, priority, ephemeral, query } = n
let data = n.resolved
let format = n.format
Expand Down

0 comments on commit 143af5d

Please sign in to comment.