Skip to content

Commit

Permalink
refactor: ♻️ update return type and comment in GROQEvaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 23, 2024
1 parent 8fdde66 commit 61aa64c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/groq.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { parse, evaluate } from "groq-js"
/**
* Loads and applies JQ transformation to the input data
* Loads and applies GROQ transformation to the input data
* @param input
*/
export async function GROQEvaluate(query: string, dataset: any): any {
export async function GROQEvaluate(query: string, dataset: any): Promise<any> {
if (dataset === undefined) return dataset

const tree = parse(query)
Expand Down

0 comments on commit 61aa64c

Please sign in to comment.