From 4e23957ab6ef42ced4ac67048b33df9567474d9c Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Wed, 24 Jul 2019 21:51:32 +0200 Subject: [PATCH] [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 --- types/airtable/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/airtable/index.d.ts b/types/airtable/index.d.ts index 7c778ac2f9..bf5e89a786 100644 --- a/types/airtable/index.d.ts +++ b/types/airtable/index.d.ts @@ -37,6 +37,12 @@ declare global { interface Table { select(opt?: SelectOptions): Query; + find(id: string): Promise>; + create(record: TFields, opts?: { typecast: boolean }): Promise>; + create(records: TFields[], opts?: { typecast: boolean }): Promise>>; + update(...args: any[]): Promise; + replace(...args: any[]): Promise; + destroy(...args: any[]): Promise; } interface SelectOptions {