Skip to content

Commit

Permalink
adding in new field types, should resolve Airtable#272 + Airtable#343
Browse files Browse the repository at this point in the history
  • Loading branch information
bowdi committed Jan 20, 2023
1 parent 2d36eb6 commit 55b8fd9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/barcode.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface Barcode {
type?: string;
text?: string;
}
4 changes: 4 additions & 0 deletions src/button.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface Button {
label: string;
url: string;
}
6 changes: 6 additions & 0 deletions src/field_set.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import {Collaborator} from './collaborator';
import {Attachment} from './attachment';
import {Barcode} from './barcode';
import {Button} from './button';

export interface FieldSet {
[key: string]:
| undefined
| null
| string
| number
| boolean
| Collaborator
| Barcode
| Button
| ReadonlyArray<Collaborator>
| ReadonlyArray<string>
| ReadonlyArray<number | string | boolean | any>
| ReadonlyArray<Attachment>;
}

0 comments on commit 55b8fd9

Please sign in to comment.