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

Should the value type of the FieldSet interface include null? #272

Open
eugene-kim opened this issue May 27, 2021 · 0 comments
Open

Should the value type of the FieldSet interface include null? #272

eugene-kim opened this issue May 27, 2021 · 0 comments

Comments

@eugene-kim
Copy link

I thinknull should be included in the value of FieldSet given that null values are used to "empty" a field when modifying an Airtable record via the update or replace methods.

Or if FieldSet is intended to be the type of the values returned by the REST API, then perhaps another type should exist to represent value types passed into REST methods.

export interface FieldSet {
    [key: string]:
        | undefined
        | string
        | number
        | boolean
        | Collaborator
        | ReadonlyArray<Collaborator>
        | ReadonlyArray<string>
        | ReadonlyArray<Attachment>;
}
bowdi added a commit to bowdi/airtable.js that referenced this issue Jan 20, 2023
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

1 participant