From 88e0e87775ec0f00d42724a91db8c589673a3ea7 Mon Sep 17 00:00:00 2001 From: tada5hi Date: Wed, 18 Jan 2023 11:57:06 +0100 Subject: [PATCH] fix(type): fix return type of evaluate method --- jsonata.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonata.d.ts b/jsonata.d.ts index 1b21a454..e71583a4 100644 --- a/jsonata.d.ts +++ b/jsonata.d.ts @@ -37,7 +37,7 @@ declare namespace jsonata { readonly input: any; } interface Expression { - evaluate(input: any, bindings?: Record): any; + evaluate(input: any, bindings?: Record): Promise; evaluate(input: any, bindings: Record | undefined, callback: (err: JsonataError, resp: any) => void): void; assign(name: string, value: any): void; registerFunction(name: string, implementation: (this: Focus, ...args: any[]) => any, signature?: string): void;