-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
16 lines (12 loc) · 1016 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
declare module '@port-labs/jq-node-bindings' {
type ExecOptions = { enableEnv?: boolean, throwOnError?: boolean };
type ExecAsyncOptions = { enableEnv?: boolean, throwOnError?: boolean, timeoutSec?: number };
export class JqExecError extends Error {
}
export class JqExecCompileError extends Error {
}
export function exec(json: object, input: string, options?: ExecOptions): object | Array<any> | string | number | boolean | null;
export function execAsync(json: object, input: string, options?: ExecAsyncOptions): Promise<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;
export function renderRecursivelyAsync(json: object, input: object | Array<any> | string | number | boolean | null, execOptions?: ExecAsyncOptions): Promise<object | Array<any> | string | number | boolean | null>;
}