Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FieldSet type doesn't cover possible return values #343

Open
williampayne23 opened this issue Jan 2, 2023 · 1 comment
Open

FieldSet type doesn't cover possible return values #343

williampayne23 opened this issue Jan 2, 2023 · 1 comment

Comments

@williampayne23
Copy link

The field set type is defined as:

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

But this reference leads me to expect a completely different set of possible return objects. The interactive API documentation for this library confirms this. For example I'm told a button field should have return type:

export interface Button {
    label: string
    url: string
}

How do I get the correct return types for the fields on my record?

bowdi added a commit to bowdi/airtable.js that referenced this issue Jan 20, 2023
@goksan
Copy link

goksan commented Mar 24, 2023

Hey @williampayne23 👋

I've cretated a repo patching types only here: https://github.com/airwalker-io/airtable.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants