You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug request_id missing on types GetPageResponse, QueryDatabaseResponse and GetDatabaseResponse
Indeed, it is included in the response but does not appear in types.
Similar to #487
To Reproduce
Node version: v21.7.3
Notion JS library version: 2.2.15
Steps to reproduce the behavior:
retrieve a db using client.pages.retrieve, client.databases.retrieve or client.databases.query and save this data as a TS const somewhere.
add the satisfies operator like and replace X with the appropriate type.
constnotionData={...}satisfiesX;
You will get this error (as an example with GetPageResponse): Object literal may only specify known properties, and 'request_id' does not exist in type 'GetPageResponse'
Expected behavior satisfies X on the data should work as the functions mentioned above return a Promise<X>.
The text was updated successfully, but these errors were encountered:
Describe the bug
request_id
missing on typesGetPageResponse
,QueryDatabaseResponse
andGetDatabaseResponse
Indeed, it is included in the response but does not appear in types.
Similar to #487
To Reproduce
Node version: v21.7.3
Notion JS library version: 2.2.15
Steps to reproduce the behavior:
client.pages.retrieve
,client.databases.retrieve
orclient.databases.query
and save this data as a TS const somewhere.satisfies
operator like and replace X with the appropriate type.You will get this error (as an example with
GetPageResponse
):Object literal may only specify known properties, and 'request_id' does not exist in type 'GetPageResponse'
Expected behavior
satisfies X
on the data should work as the functions mentioned above return aPromise<X>
.The text was updated successfully, but these errors were encountered: