[airtable]: add extra functions (#37058)

* [airtable]: add extra functions

I got a little lazy at the end trying to figure out what all the parameters are, but at least they're now there, another PR can improve them.

Ref: https://github.com/Airtable/airtable.js/blob/master/lib/table.js#L23

* Update index.d.ts
This commit is contained in:
Haroen Viaene
2019-07-24 12:51:32 -07:00
committed by Wesley Wigham
parent 80fb14bda4
commit 4e23957ab6
+6
View File
@@ -37,6 +37,12 @@ declare global {
interface Table<TFields extends FieldSet> {
select(opt?: SelectOptions): Query<TFields>;
find(id: string): Promise<Response<TFields>>;
create(record: TFields, opts?: { typecast: boolean }): Promise<Response<TFields>>;
create(records: TFields[], opts?: { typecast: boolean }): Promise<Array<Response<TFields>>>;
update(...args: any[]): Promise<any>;
replace(...args: any[]): Promise<any>;
destroy(...args: any[]): Promise<any>;
}
interface SelectOptions {