mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #48101 Add missing restApiOptions for jsforce connection by @jonathanwiesel
Co-authored-by: Jonathan Wiesel <jonathan.wiesel@s4g.es>
This commit is contained in:
parent
c60403cb35
commit
d9c0a17d84
2
types/jsforce/connection.d.ts
vendored
2
types/jsforce/connection.d.ts
vendored
@ -21,6 +21,8 @@ export type Callback<T> = (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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user