mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
@types/airtable Added constructor definition. (#35957)
* Added constructor definition. * Added constructor definition. * Added constructor parameter definition as `AirtableOptions`. * Update index.d.ts add `requestTimeout: number` to `AirtableOptions`.
This commit is contained in:
13
types/airtable/index.d.ts
vendored
13
types/airtable/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for airtable 0.5
|
||||
// Project: https://github.com/airtable/airtable.js
|
||||
// Definitions by: Brandon Valosek <https://github.com/bvalosek>
|
||||
// Max Chehab <https://github.com/maxchehab>
|
||||
// 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<Attachment>;
|
||||
[key: string]: undefined | string | ReadonlyArray<Attachment>;
|
||||
}
|
||||
|
||||
interface AirtableOptions {
|
||||
apiKey?: string;
|
||||
endpointUrl?: string;
|
||||
apiVersion?: string;
|
||||
allowUnauthorizedSsl?: boolean;
|
||||
noRetryIfRateLimited?: boolean;
|
||||
requestTimeout: number;
|
||||
}
|
||||
|
||||
interface Base {
|
||||
|
||||
Reference in New Issue
Block a user