notion-sdk-js icon indicating copy to clipboard operation
notion-sdk-js copied to clipboard

Export AnnotationResponse type (#507)

Open jwanner83 opened this issue 1 year ago • 1 comments

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'

jwanner83 avatar May 04 '24 12:05 jwanner83

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar May 04 '24 12:05 CLAassistant

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!)

ksinder avatar May 07 '25 16:05 ksinder