Skip to content

Commit

Permalink
fix(type): fix return type of evaluate method
Browse files Browse the repository at this point in the history
  • Loading branch information
tada5hi authored and mattbaileyuk committed Jan 18, 2023
1 parent 964a860 commit 9ccb998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonata.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ declare namespace jsonata {
readonly input: any;
}
interface Expression {
evaluate(input: any, bindings?: Record<string, any>): any;
evaluate(input: any, bindings?: Record<string, any>): Promise<any>;
evaluate(input: any, bindings: Record<string, any> | 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;
Expand Down

0 comments on commit 9ccb998

Please sign in to comment.