-
Notifications
You must be signed in to change notification settings - Fork 548
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
Type mismatch for relations. SDK types do not expect to see "has_more" #443
Comments
Are you using the method |
Page properties notion-sdk-js/src/api-endpoints.ts Line 4588 in 7950edc
https://developers.notion.com/reference/page-property-values#relation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I fetch data from the notion api. I want to work with that data and have used the types "PageObjectResponse" and "PartialPageObjectResponse" from the sdk to define the responses I can get. For all the properties that are relations I get a type error:
'has_more' does not exist in type '{ type: "relation"; relation: { id: string; }[]; id: string; }'
The data looks like this:
Parent: { id: "%60J%3D~", type: "relation", relation: [{ id: "a8b666cc-4c8c-4e10-b612-2eb1f968b1a4" }], has_more: false, },
The text was updated successfully, but these errors were encountered: