mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 14:30:22 +00:00
[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:
committed by
Wesley Wigham
parent
80fb14bda4
commit
4e23957ab6
Vendored
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user