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

File(s)Property Inconsistency between API and Typescript #107

Closed
kevarifin14 opened this issue May 27, 2021 · 0 comments · Fixed by #136
Closed

File(s)Property Inconsistency between API and Typescript #107

kevarifin14 opened this issue May 27, 2021 · 0 comments · Fixed by #136
Assignees

Comments

@kevarifin14
Copy link

There seems to be a slight inconsistency with what a database retrieve returns and the typescript definition for files:

The typescript definition is as follows:

export declare type Property = TitleProperty | RichTextProperty | NumberProperty | SelectProperty | MultiSelectProperty | DateProperty | PeopleProperty | FileProperty | CheckboxProperty | URLProperty | EmailProperty | PhoneNumberProperty | FormulaProperty | RelationProperty | RollupProperty | CreatedTimeProperty | CreatedByProperty | LastEditedTimeProperty | LastEditedByProperty;
export interface FileProperty extends PropertyBase {
    type: "file";
    file: Record<string, never>;
}

However the database retrieve returns:

{"id":"L;D\\","type":"files","files":[]}
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

Successfully merging a pull request may close this issue.

2 participants