diff --git a/types/jsforce/connection.d.ts b/types/jsforce/connection.d.ts index 9b78a9bd1c..b01fec344c 100644 --- a/types/jsforce/connection.d.ts +++ b/types/jsforce/connection.d.ts @@ -21,6 +21,8 @@ export type Callback = (err: Error | null, result: T) => void; // and search for options export interface RestApiOptions { headers?: { [x: string]: string } + allowRecursive?: boolean; + allOrNone?: boolean; } // These are pulled out because according to http://jsforce.github.io/jsforce/doc/connection.js.html#line49 diff --git a/types/jsforce/jsforce-tests.ts b/types/jsforce/jsforce-tests.ts index 8f141ad6e4..4a17c59dc4 100644 --- a/types/jsforce/jsforce-tests.ts +++ b/types/jsforce/jsforce-tests.ts @@ -42,7 +42,9 @@ async function testSObject(connection: sf.Connection) { // currently untyped, but some future change may make this stricter const restApiOptions = { - headers: { Bearer: 'I have no idea what this wants' } + headers: { Bearer: 'I have no idea what this wants' }, + allowRecursive: true, + allOrNone: true }; { // Test SObject.record