Skip to content

Commit 9ccb998

Browse files
tada5himattbaileyuk
authored andcommitted
fix(type): fix return type of evaluate method
1 parent 964a860 commit 9ccb998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonata.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare namespace jsonata {
3737
readonly input: any;
3838
}
3939
interface Expression {
40-
evaluate(input: any, bindings?: Record<string, any>): any;
40+
evaluate(input: any, bindings?: Record<string, any>): Promise<any>;
4141
evaluate(input: any, bindings: Record<string, any> | undefined, callback: (err: JsonataError, resp: any) => void): void;
4242
assign(name: string, value: any): void;
4343
registerFunction(name: string, implementation: (this: Focus, ...args: any[]) => any, signature?: string): void;

0 commit comments

Comments
 (0)