DefinitelyTyped/types/airtable
Merott Movahedi b1a6ee348e fix(airtable): return types for Table.create (#40756)
* fix: Table.create can return a single TFields object

When `create` is called with a single object to create, the return type is not an array, but a single object. `Response<TFields>` is defined as `ReadonlyArray<Row<TFields>>` (note: `Array`), which isn't correct for a single object. Likewise, `Promise<Array<Response<TFields>>>` implies a multidimensional array, which again isn't correct.

* test: add tests for Airtable.create

* fix: fix usage of Readonly type
2019-12-03 21:12:42 -08:00
..
airtable-tests.ts fix(airtable): return types for Table.create (#40756) 2019-12-03 21:12:42 -08:00
index.d.ts fix(airtable): return types for Table.create (#40756) 2019-12-03 21:12:42 -08:00
tsconfig.json
tslint.json