Skip to content

Commit

Permalink
Add support to throw jq error
Browse files Browse the repository at this point in the history
  • Loading branch information
talsabagport committed Jan 22, 2024
1 parent dbd13b0 commit faa13e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
declare module '@port-labs/jq-node-bindings' {
export function exec(json: object, input: string, options?: {enableEnv?: boolean, throwOnError?: boolean}): object | Array<any> | string | number | boolean | null;
export function renderRecursively(json: object, input: object | Array<any> | string | number | boolean | null): object | Array<any> | string | number | boolean | null;
type ExecOptions = {enableEnv?: boolean, throwOnError?: boolean};
export function exec(json: object, input: string, options?: ExecOptions): object | Array<any> | string | number | boolean | null;
export function renderRecursively(json: object, input: object | Array<any> | string | number | boolean | null, execOptions?: ExecOptions): object | Array<any> | string | number | boolean | null;
}

0 comments on commit faa13e1

Please sign in to comment.