notion-sdk-js
notion-sdk-js copied to clipboard
Export AnnotationResponse type (#507)
As i promised in this issue: https://github.com/makenotion/notion-sdk-js/issues/507.
The pull request to add the export keyword to the AnnotationResponse type. Now, the type is available to import via import { AnnotationResponse } from '@notionhq/client/build/src/api-endpoints'
See the comment I just made in another PR: https://github.com/makenotion/notion-sdk-js/pull/523#issuecomment-2859275815
I believe once I publish v3.0.1, you should be able to extract this type from some of the rich text response object types that will be accessible from the package? Let me know if that doesn't work for you though and I can look into a solution! (The api-endpoints.ts file is generated so we prefer folks not change it directly since it'd get clobbered when my team runs the generation script for it!)