diff --git a/types/airtable/index.d.ts b/types/airtable/index.d.ts index f3b6efa4ee..797c8d36e5 100644 --- a/types/airtable/index.d.ts +++ b/types/airtable/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for airtable 0.5 // Project: https://github.com/airtable/airtable.js // Definitions by: Brandon Valosek +// Max Chehab // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -8,12 +9,22 @@ export = Airtable; declare global { class Airtable { + constructor(options?: Airtable.AirtableOptions); base(appId: string): Airtable.Base; } namespace Airtable { interface FieldSet { - [ key: string ]: undefined | string | ReadonlyArray; + [key: string]: undefined | string | ReadonlyArray; + } + + interface AirtableOptions { + apiKey?: string; + endpointUrl?: string; + apiVersion?: string; + allowUnauthorizedSsl?: boolean; + noRetryIfRateLimited?: boolean; + requestTimeout: number; } interface Base {